Rerere in Git 0 ▲ Cassidy Williams 1 day ago · Tech · hide It’s day 5 of Blogvent, where I blog every day in December! I learned about git rerere recently and it’s pretty neat, particularly if you are in a codebase that hits merge conflicts relatively often. It solves the problem of when you resolve the same conflicts regularly, for example: Repeatedly rebasing a feature onto main (like on long-lived branches) Stacked PRs, if you restack a lot of dependent branches Multiple integration attempts, like if you try to integrate something, resolve stuff in that integration, give up, and try again later An agent repeatedly updates the same PR as a base changes …and so on. rerere stands for “reuse recorded resolution” and it lets Git remember how you resolved a conflict, and can apply that resolution when it recurs in a merge or rebase! To enable rerere, run: git config --global rerere.enabled true Then, in future resolutions, you’ll see this in your terminal when it runs: Resolved 'hello-world.md' using previous resolution. Check out the getting… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town