[diff]
tool = meld
[difftool "meld"]
cmd = "\"c:/Program Files (x86)/Meld/Meld.exe\" \"$LOCAL\" \"$REMOTE\""
[alias]
meld = difftool -t meld --dir-diff
This can be achieved by simple edit or with command lines:
First command line is enough for setting Meld as default diff tool under Linux.
git config --global merge.tool meld
git config --global mergetool.meld.path "C:\Program Files (x86)\Meld\Meld.exe"
Troubleshooting:
- If Meld still does not open, check your_project/.git/config file. It should NOT include the lines above. If the lines are included for some reason then remove them.
- If you encounter this error under Windows (/mingw64/libexec/git-core/git-mergetool-