cheat-sheet.md: Mention the default root for 'git branch ...'
[swc-version-control-git.git] / cheat-sheet.md
index ab4c0275c0b45bd76e556b6e8e51f97c28816c75..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
 =======
@@ -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