Last Updated: February 25, 2016
·
1.416K
· johnantoni

git pull --rebase

Doing 'git pull' is fine but if you're working on a branch others are actively using this will add a merge message to the log messing up the log history. Using --rebase will do a pull then rebase and keep the log clean.

2 Responses
Add your response

Is this the same of doing git fetch then git rebase [origin] [branch] ?

over 1 year ago ·

believe so, just a little simpler to use.

http://git-scm.com/docs/git-pull

over 1 year ago ·