mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 00:06:47 +03:00
Merge pull request #1620 from Chris54721/patch-4
[git/en] Fixed 'git push' documentation
This commit is contained in:
commit
0a110aad30
@ -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
|
# Push and merge changes from a local repo to a
|
||||||
# remote named "origin" and "master" branch.
|
# remote named "origin" and "master" branch.
|
||||||
# git push <remote> <branch>
|
# git push <remote> <branch>
|
||||||
# git push => implicitly defaults to => git push origin master
|
|
||||||
$ 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:
|
# To link up current local branch with a remote branch, add -u flag:
|
||||||
$ git push -u origin master
|
$ git push -u origin master
|
||||||
# Now, anytime you want to push from that same local branch, use shortcut:
|
# Now, anytime you want to push from that same local branch, use shortcut:
|
||||||
|
Loading…
Reference in New Issue
Block a user