Reuse recorded conflict resolutions in future rebases and merges.
Section: Rebase Conflicts and Recovery
Enable rerere globally
bash
bash
git config --global rerere.enabled trueExplanation
A strong quality-of-life improvement for repeated rebases or long-lived branches.
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 Rebase Conflicts and Recovery
Take ours side for a conflicted file
Resolve one conflicted path using the current branch side.
Take theirs side for a conflicted file
Resolve one conflicted path using the incoming side.
Find pre-rebase state in reflog
Locate the branch state before an unwanted rebase.
Continue rebase after resolving conflicts
Resume the rebase once conflicts are fixed.