cheat-sheet.md: Mention the default root for 'git branch ...'
[swc-version-control-git.git] / cheat-sheet.md
index e3030f81bf9e3cf1d152c483397ba5434831f3ed..6c71bbfbcc5a7cd5bac0a111cd24306d57f04afe 100644 (file)
@@ -30,9 +30,10 @@ Basic use
 
         $ git commit -a -m "$MESSAGE"
 
-* Push any local commits to a public repository (e.g. `origin`):
+* Push any local commits in `$branch` (e.g. `master`) to a public
+  repository (e.g. `origin`):
 
-        $ git push origin
+        $ git push origin $branch
 
 Merging
 =======
@@ -118,7 +119,7 @@ Provenance
         $ git tag v1.2.3
         $ git push --tags origin
 
-* Incorperate the tags into any releases.  For example, the Git
+* Incorporate the tags into any releases.  For example, the Git
   project extracts [version information][git-version-gen] when you
   [compile the project][git-makefile].  Most Python projects just
   increment `package.__version__` by hand
@@ -131,7 +132,8 @@ Branches
 
         $ git branch
 
-* Make a new branch (e.g. `some-feature`):
+* Make a new branch (e.g. `some-feature`) based on the current `HEAD`
+  commit:
 
         $ git branch some-feature