cheat-sheet.md: Explicitly list the branch to push
[swc-version-control-git.git] / cheat-sheet.md
index ab4c0275c0b45bd76e556b6e8e51f97c28816c75..c17f8631cf68d95a9e80b5785f8d2bb3b1700ebe 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
 =======