From: W. Trevor King Date: Tue, 29 Apr 2014 22:08:13 +0000 (-0700) Subject: cheat-sheet.md: Explicitly list the branch to push X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7af99933636f606381377614675baf1df7405092;p=swc-workshop.git cheat-sheet.md: Explicitly list the branch to push 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. --- diff --git a/cheat-sheet.md b/cheat-sheet.md index ab4c027..c17f863 100644 --- a/cheat-sheet.md +++ b/cheat-sheet.md @@ -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 =======