mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 16:06:39 +00:00
copied configuration of git user and autocrlf to build-an-run section to
ensure that the user has the correct metadata before creating the first commit
This commit is contained in:
@@ -63,6 +63,9 @@ The primary Git repository for the project is hosted on sapsailing.com. It is mi
|
||||
* Clone the repository to your local file system from `ssh://[SAP-User]@git.wdf.sap.corp:29418/SAPSail/sapsailingcapture.git` or `ssh://[user]@sapsailing.com/home/trac/git` User "trac" has all public ssh keys.
|
||||
* Please note that when using one of the newer versions of Cygwin, your Cygwin home folder setting might differ from your Windows home folder. This will likely lead to problems when issuing certain commands. For troubleshooting, take a look at the following thread: [https://stackoverflow.com/questions/1494658/how-can-i-change-my-cygwin-home-folder-after-installation](https://stackoverflow.com/questions/1494658/how-can-i-change-my-cygwin-home-folder-after-installation)
|
||||
2. Check out the 'master' branch from the git repository. The 'master' branch is the main development branch. Please check that you start your work on this branch.
|
||||
2. Configure your local git repository
|
||||
* Execute the command `git config core.autocrlf false` in the git repository
|
||||
* Ensure that your git username and email is set properly: In case you are unsure, use the commands `git config user.name "My Name"` and `git config user.email my.email@sap.com` in the git repository.
|
||||
3. Setup and configure Eclipse
|
||||
* Make absolutely sure to import CodeFormatter.xml (from $GIT_HOME/java) into your Eclipse preferences (Preferences->Java->Code Style->Formatter)
|
||||
* Install the required plugins using the script provided above. Further configuration steps depend on the plugins being installed successfully. As an alternative, the steps done by the script can be performed manually:
|
||||
@@ -100,8 +103,7 @@ The primary Git repository for the project is hosted on sapsailing.com. It is mi
|
||||
* Press "List Races"
|
||||
|
||||
#### Git repository configuration essentials
|
||||
|
||||
The project has some configuration of line endings for specific file types in ".gitattributes". To make this work as intended, you need to set the git attribute "core.autocrlf" to "false". This can be done by navigating to your local repository in a Bach/Git Bach/Cygwin instance and executing the command `git config core.autocrlf false`.
|
||||
The project has some configuration of line endings for specific file types in ".gitattributes". To make this work as intended, you need to ensure that the git attribute "core.autocrlf" is set to "false". This can be done by navigating to your local repository in a Bach/Git Bach/Cygwin instance and executing the command `git config core.autocrlf false`.
|
||||
|
||||
If you are first time git user, don't forget to specify your user metadata. Use the commands `git config user.name "My Name"` and `git config user.email my.email@sap.com` to tell git your name and email address.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user