Atlassian

Resolving conflicts with git-rerere

Jul 22, 2019Jeremy Greer
Resolving conflicts with git-rerere
SummaryAI, from the source post

This post introduces and explains the functionality of `git rerere` (Reuse Recorded Resolution). It details how to enable it, its automatic operation during merges and rebases, and the underlying mechanism involving the `.git/rr-cache/` directory with 'preimage', 'postimage', and 'thisimage' files. Use cases for long-lived branches and rebasing are demonstrated, highlighting how rerere prevents repeated resolution of the same conflicts.