The difference in behavior is a result of the fact that git does only put conflict info about the two branches being merged into the conflict file by default. The information about the mergebase is left out of there. You can change that behaviour by running
git config --global merge.conflictstyle diff3
I do not know whether meld can handle that. But that doesn’t really matter as you should run the conflict resolution via git mergetool -y
anyways. The problem with the .orig
files can be resolved by running (as knittl already pointed out)
git config --global mergetool.keepBackup false
Note the --global
– this is important, otherwise the setting will only be changed for the current repo.