I posted this in a comment above but because it's relevant I feel it's worth putting here as well[1]:
git rerere (reuse recorded resolution): https://git-scm.com/2010/03/08/rerere.html
"it allows you to ask Git to remember how you've resolved a hunk conflict so that the next time it sees the same conflict, Git can automatically resolve it for you."
[1] This isn't explicitly against the rules but if it's in bad taste I'll happily remove it.