3 ms·
Like everything else in git, rebase feels like bits of seemingly-unrelated functionality bolted together, but I think I find basically all of the parts useful:
by mikepurvis 5y ago
Like everything else in git, rebase feels like bits of seemingly-unrelated functionality bolted together, but I think I find basically all of the parts useful:
- Rebasing my local changes onto remote updates has always felt safer and more natural than creating merge commits containing actual diffs.
- The ability to trivially patch, drop, combine, and reorder commits has always felt like a superpower when it comes to telling the "story" of a change in a review, or breaking up a review into multiple smaller ones.
- It's a bit more roundabout compared to just "edit", but if I want to amend a commit that isn't the HEAD, I often find it easier to just make a new commit with the desired change and then use rebase -i to move it up and squash it into where it needs to go.