I want git diff
to be a quick command line solution to see the difference between two files, and then I want git difftool
to launch meld for a more graphical view of the file differences.
Currently, git diff
does exactly what I want it to, however when I run git difftool script.js
, git tries to launch vimdiff instead of meld:
Viewing (1/1): 'script.js'
Launch 'vimdiff' [Y/n]:
If I specify the tool with git difftool -t meld script.js
it tries to launch meld as it should:
Viewing (1/1): 'script.js'
Launch 'meld' [Y/n]:
How do I get git difftool <filename>
to launch meld while git diff <filename>
still uses vimdiff?
My .gitconfig contains the following:
[diff]
tool = vimdiff
[difftool]
tool = meld
[difftool "meld"]
path = C:\\Program Files (x86)\\Meld\\Meld.exe