Aside from the resulting git tree structure, are there any important differences between git pull vs git fetch + git rebase? -


i've worked on dev team preferred use method of git fetch , git rebase rather method of git pull, before git pushing changes avoid merge conflicts.

is there specific reason besides difference in visual tree structure? according http://mattsnider.com/git-rebase-versus-git-pull/ fetch & rebase

"will produce cleaner history, without extraneous merge commits"

but between 2 methods there other reasons choose 1 on other?

git pull = git fetch + git merge

git pull --rebase or git pull -r= git fetch + git rebase

no more, no less ;-) there no magic. second.

the main advantage of doing fetch rebase in 2 distinct steps first doesn't modify local branch (absolutely no risks) , every time (you create task run periodically).

and once fetched, @ history, compare commits, , decide want , when...


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -