Git Instructions
-
All changes go via branch and Pull Request
-
No longer direct commits to master
To create a new branch and work on it:
-
$ git checkout master
-
$ git pull
-
$ git checkout -b <name-of-new-branch>
-
Update files
-
$ git commit -m "<commit message>"
-
$ git push --set-upstream <name-of-new-branch>
- This provides you a URL to create a pull request
-
Create that pull request, but set it to WIP (Work In progress)
-
Continue to commit on the new branch and push.
-
Update files
-
$ git commit -m "<commit message>"
-
$ git push
-
Basic helper functions:
-
To verify on which branch you are you may use
- $ git branch
and/or
- $ git status
-
In case you end up on another branch use
- $ git checkout <name-of-new-branch>
-
If there was a change on master, you can rebase (synchronize) your branch with the changes as follows (on your branch):
- $ git pull --rebase origin master
or alternatively (step-by-step):
-
$ git checkout master
-
$ git pull
-
$ git checkout ;
-
$ git rebase master
If there are conflicts during rebase, you neeed to resolve those. You may use, e.g.
- $ git rebase -i
New style for linefeeds in .mkd docucuments
-
One line per sentence
- Reason: changes are better visible in diffs
-
So far only pep-keyreset, pep-general and pep-email has been converted completely to the new style
- Whenever you touch something, please use the new style for linefeeds for inserts or around the changes to gradually convert the documents to new style