Reuse Conflict Resolutions With rerere
Record how you resolved a conflict and apply it again automatically.
Run git config rerere.enabled true to start recording and replaying resolutions.
01Command
Command
$ git config rerere.enabled true02What it does
When a branch is rebased repeatedly, the same conflicts recur; rerere remembers each resolution and applies it next time, saving substantial manual work. It is an automation feature that lives naturally in a terminal workflow.
03Risk
!Warning: An automatic resolution can be wrong if context changed; review replayed hunks before committing.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- git-rerere documentationEvidence: Documents rerere, which records conflict resolutions and reuses them.
Last verified: 2026-10-13 · Category: Developer