Merge pull request #177 from johncowie/master

Explain git pull default behaviour and the use of --rebase flag.
This commit is contained in:
Adam Bard 2013-08-08 11:29:14 -07:00
commit 576548e08f

View File

@ -310,7 +310,12 @@ Pulls from a repository and merges it with another branch.
# Update your local repo, by merging in new changes
# from the remote "origin" and "master" branch.
# git pull <remote> <branch>
# git pull => implicitly defaults to => git pull origin master
$ git pull origin master
# Merge in changes from remote branch and rebase
# branch commits onto your local repo, like: "git pull <remote> <branch>, git rebase <branch>"
$ git pull origin master --rebase
```
### push