Benefits of git fetch; git rebase origin master

Possible duplicate:
git pull VS git fetch git rebase

I see that the project gitrecommended that you update the project with

git fetch; git rebase origin master

Are there any advantages to this compared to

git pull

in terms of open source projects on github, since you always trust the remote system.

+5
source share
1 answer

If you have not made any changes to your local copy of the branch, two sets of commands will lead to exactly the same story. The difference comes into play when you make local commits to your current copy of the branch.

git pull, , , , . , , rebase ( git pull --rebase), . , , .

, , .

+8

All Articles