diff options
author | Adam Bard <github@adambard.com> | 2014-06-05 12:31:21 +0200 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2014-06-05 12:31:21 +0200 |
commit | a89a9a4fb6ed6cd327f84714fdf9690c0b18d576 (patch) | |
tree | 1bbf02d389d489ca17a5503859d843aa2f1be963 | |
parent | 7463bb7f443e376d4d6c5d810159b93c2d91824a (diff) | |
parent | 49eed60496327a9a98155db57d58deb7d2c86fae (diff) |
Merge pull request #635 from levibostian/git-push-addition
Add git push -u command to git tutorial.
-rw-r--r-- | git.html.markdown | 5 |
1 files changed, 5 insertions, 0 deletions
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 <remote> <branch> # 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) |