4 ms·
Rebasing will first undo your changes, get the latest changes from the target branch, then slap all of your changes at the HEAD. It makes things a lot cleaner a
by prezjordan 13y ago
Rebasing will first undo your changes, get the latest changes from the target branch, then slap all of your changes at the HEAD. It makes things a lot cleaner and easier to revert (without digging through the reflog), whereas merging will intertwine your changes with the master branch.
I use it to keep things organized, and also (as you mentioned) for squashing consecutive commits.