rebase
overwrites the story. Is this the way more merge
or cherry-pick
- a very advanced tool that takes over (and can be dangerous as it overwrites the story ... be careful with git push -f
). When rebase
used in a similar way merge
, the process is quite distinctly different.
git fetch origin && git merge origin/master
:
- download changes from source
- merging changes over the local branch
- resolve conflicts and commit
git fetch origin && git rebase origin/master
:
- download changes from source
- reset the local branch to a common point in the history (commit, which is used by both local and remote repositories)
- fast forward
- apply your commits on top of new commits one at a time
- resolve conflicts and commit for each local change
rebase
, , "" , ", ." , , , , "" .
, rebase
- , . , , .. !