Git Rerere: The Secret Merge Feature

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Git rerere (reuse recorded resolution) is a lesser-known Git configuration setting that automatically reapplies previously recorded merge conflict resolutions. Once enabled with `git config rerere.enabled true`, Git records how you resolve a conflict and automatically applies the same resolution when it encounters an identical conflict pattern in the future. The feature works across different files and branches, and is order-independent (zero vs 100 or 100 vs zero are treated as the same conflict). However, surrounding context lines must match exactly for auto-resolution to trigger — different context means a different conflict signature that won't be auto-resolved.

11m watch time
1.5K Impressions