FahamLah

Commands

git rerere

git rerere [forget <path> | diff | status]

Risk: Safe

What it does

Remembers how you fixed a conflict and replays the fix next time.

When to use it

When you rebase often and the same conflicts keep coming back.

Example

$ git config --global rerere.enabled true

Turn it on once. Git records fixes by itself after that.

$ git rerere forget index.html

Drop a recorded fix you no longer want.