cheat-sheet.md: Explicitly list the branch to push
authorW. Trevor King <wking@tremily.us>
Tue, 29 Apr 2014 22:08:13 +0000 (15:08 -0700)
committerW. Trevor King <wking@tremily.us>
Tue, 29 Apr 2014 22:08:13 +0000 (15:08 -0700)
With Git 2.0, the default push strategy changed to 'simple', only
pushing the current branch.  However, for backwards compatibility and
general explicit-ness, it's better to list the refs you're pushing
anyway.

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
 =======