summaryrefslogtreecommitdiffhomepage
path: root/git.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-06-03 11:40:06 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-06-03 11:40:06 -0500
commit49eed60496327a9a98155db57d58deb7d2c86fae (patch)
tree104407e462ac40528912b5ee6e58c84b9b23f42f /git.html.markdown
parent56f22971e9eb5e77a885cb89eba055a400b4b514 (diff)
Add git push -u command to git tutorial.
Diffstat (limited to 'git.html.markdown')
-rw-r--r--git.html.markdown5
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)