Every few weeks I hit the same merge conflict. Same file, same lines, same decisions. For years I just dealt with it — resolve, commit, move on. Then I stumbled over rerere and now I dont go back.

What it does

rerere stands for "Reuse Recorded Resolution." Git remembers how you resolved a conflict and auto-applies that resolution the next time it sees the same conflict. You resolve it once, and future merges handle it without you.

Setup

One command: