Neil Macy

Git Rebase

I really like this description of git rebase, from this Atlassian tutorial.

rebasing is changing the base of your branch from one commit to another making it appear as if you’d created your branch from a different commit.

Rebasing is something I use on a regular basis, and I find it really useful. Much better than merging main into my branch to keep it up to date. But it’s not a commonly-used feature of git, in my experience, and that’s usually because people think it’s more complicated than merging.

This quote above describes why I think it’s conceptually really simple.

Published on 17 April 2024