Reputation: 3395
I am in the middle of a major code refactoring.
I use git for versioning.
Is there any trick to avoid the massive amount of conflicts when I split the last commit into 3, reorder commits and squash them so I only have the first 3 commits?
Upvotes: 1
Views: 413
Reputation: 142044
You can set the rerere
flag.
git rerere
git rerere
is an internal mechanism for saving resolved conflicts.
Once the flag is enabled
every time you resolve a conflict git store the result patch file inside the .git/rr-cached
folder and next time it will "find" the same conflict it will resolve it automatically for you.
git config --global rerere.enabled true
Upvotes: 1