I initially did the commands mentioned in How to resolve merge conflicts in Git
I did:
git config merge.tool vimdiff
git config merge.conflictstyle diff3
git config mergetool.prompt false
Then I did the commands mentioned How to use opendiff as default mergetool
I did both:
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
git config --global merge.tool opendiff
I also checked it with:
$ git config --global merge.tool
and terminal says it's opendiff
However when I do git mergetool
it reverts back to using vimdiff
.
If I try the 2nd solution in the linked answer ie do:
$ git mergetool -t opendiff
Then it works for once.
So how I can permanently change it to opendiff