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
Post a Comment