mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[git/en] Fixed 'git pull' documentation
While translating git.html.markdown to Italian, I found a mistake: `git pull` does not default to `git pull origin master`. By default, it updates the current branch by merging changes from its remote-tracking branch.
This commit is contained in:
parent
6051783214
commit
670e71c499
@ -371,9 +371,12 @@ Pulls from a repository and merges it with another branch.
|
|||||||
# Update your local repo, by merging in new changes
|
# Update your local repo, by merging in new changes
|
||||||
# from the remote "origin" and "master" branch.
|
# from the remote "origin" and "master" branch.
|
||||||
# git pull <remote> <branch>
|
# git pull <remote> <branch>
|
||||||
# git pull => implicitly defaults to => git pull origin master
|
|
||||||
$ git pull origin master
|
$ git pull origin master
|
||||||
|
|
||||||
|
# By default, git pull will update your current branch
|
||||||
|
# by merging in new changes from its remote-tracking branch
|
||||||
|
$ git pull
|
||||||
|
|
||||||
# Merge in changes from remote branch and rebase
|
# Merge in changes from remote branch and rebase
|
||||||
# branch commits onto your local repo, like: "git pull <remote> <branch>, git rebase <branch>"
|
# branch commits onto your local repo, like: "git pull <remote> <branch>, git rebase <branch>"
|
||||||
$ git pull origin master --rebase
|
$ git pull origin master --rebase
|
||||||
|
Loading…
Reference in New Issue
Block a user