From 49eed60496327a9a98155db57d58deb7d2c86fae Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Tue, 3 Jun 2014 11:40:06 -0500 Subject: [PATCH] Add git push -u command to git tutorial. --- git.html.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git.html.markdown b/git.html.markdown index 4b5e466e..65e57f05 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -327,6 +327,11 @@ Push and merge changes from a branch to a remote & branch. # git push # git push => implicitly defaults to => git push origin master $ git push origin master + +# To link up current local branch with a remote branch, add -u flag: +$ git push -u origin master +# Now, anytime you want to push from that same local branch, use shortcut: +$ git push ``` ### rebase (caution)