diff options
author | ven <vendethiel@hotmail.fr> | 2015-10-18 13:54:27 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2015-10-18 13:54:27 +0200 |
commit | 0a110aad30098ad1a4e9a1b5acb53a2f2ce27ad0 (patch) | |
tree | 9340c4058e0f9a260e6112cdb99ee7d6e42058f2 /git.html.markdown | |
parent | 769304a22fed96f8c396bfb84a70d65f03f0421c (diff) | |
parent | 6d20f58cbd3022fb8990ace8f88f8f4c15591a88 (diff) |
Merge pull request #1620 from Chris54721/patch-4
[git/en] Fixed 'git push' documentation
Diffstat (limited to 'git.html.markdown')
-rw-r--r-- | git.html.markdown | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git.html.markdown b/git.html.markdown index ed9aec15..bedc9853 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -390,9 +390,12 @@ Push and merge changes from a branch to a remote & branch. # Push and merge changes from a local repo to a # remote named "origin" and "master" branch. # git push <remote> <branch> -# git push => implicitly defaults to => git push origin master $ git push origin master +# By default, git push will push and merge changes from +# the current branch to its remote-tracking branch +$ git push + # 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: |