How to fix common mistakes in Git

Mercurial has pluggable diff and merge tools which are intended to assist with cases like this.