Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
noresm:gitbestpractice [2015-11-24 09:48:54] alfg |
noresm:gitbestpractice [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
- **Create a github user:** You can create the github user yourself. Go to https:// | - **Create a github user:** You can create the github user yourself. Go to https:// | ||
- Visit this page: https:// | - Visit this page: https:// | ||
- | - Send email to alf.grini@met.no | + | - Send email to oyvind.seland@met.no to get the right permissions for the new github user (The email must contain who you are and the github username). |
- When you have the right permissions, | - When you have the right permissions, | ||
- git clone https:// | - git clone https:// | ||
Line 14: | Line 14: | ||
**Also do the following on all machines where you use git:** | **Also do the following on all machines where you use git:** | ||
* **Make sure you have a version of git >= 2.0** (add the line " | * **Make sure you have a version of git >= 2.0** (add the line " | ||
- | * **git config --global push.default simple** (Will edit your ~/ | + | * **git config - -global push.default simple** (Will edit your ~/ |
Note that with git, the main branch is no longer called " | Note that with git, the main branch is no longer called " | ||
Line 41: | Line 41: | ||
Modify the code (for example a file named myChangedFile.F90) and send back to your local repository through | Modify the code (for example a file named myChangedFile.F90) and send back to your local repository through | ||
- | < | + | < |
< | < | ||
- | The message should link to the issue on github, so if you fix issue number 100 by this code change, you would probably write something like < | + | The message should link to the issue on github, so if you fix issue number 100 by this code change, you would probably write something like < |
Verify, using the tool " | Verify, using the tool " | ||
Line 62: | Line 62: | ||
You can also do (to be completely sure): | You can also do (to be completely sure): | ||
- | < | + | < |
====If you don't understand and want to get back to svn ==== | ====If you don't understand and want to get back to svn ==== |