Record and reuse conflict resolutions automatically.
Section: Rerere and Repeated Conflict Resolution
Enable rerere
bash
bash
git config --global rerere.enabled trueExplanation
Excellent for repeated rebases, repeated cherry-picks, or long-running branches that see the same conflict patterns.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Rerere and Repeated Conflict Resolution
Show rerere diff
Inspect what rerere has recorded for conflict resolutions.
Stash unstaged changes only
Keep staged changes in the index and stash the rest.