From 7af99933636f606381377614675baf1df7405092 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 29 Apr 2014 15:08:13 -0700 Subject: [PATCH] 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. --- cheat-sheet.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ======= -- 2.26.2