Record and reuse conflict resolutions automatically.

Section: Rerere and Repeated Conflict Resolution

Enable rerere

bash
bash
git config --global rerere.enabled true
Explanation

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.
OpenIn sheetbashsame section
Clear rerere state
Remove recorded conflict-resolution data.
OpenIn sheetbashsame section
Create a named stash
Save tracked changes with a message.
OpenIn sheetbash1 tag match
List worktrees
Show all linked working trees for the repository.
OpenIn sheetbash1 tag match
Preview untracked file deletion
Dry-run a cleanup of untracked files.
OpenIn sheetbash1 tag match
Stash unstaged changes only
Keep staged changes in the index and stash the rest.
OpenIn sheetbash1 tag match