I am trying to setup an external difftool, I've read many pages but no one has provided a solution that works, or they leave out information.
I have gotten to where the program opens but only one file is showing, the other is missing. I used the "Diffinity" program (which I downloaded, and added to ENV variables)
Then in C:\Users\myuser\.gitconfig
I had:
[diff]
tool = Diffinity
[difftool "Diffinity"]
cmd = 'C:/Program Files/Diffinity/Diffinity.exe' "$LOCAL" "$REMOTE"
When trying it:
git difftool c8995eb 6235431
the program opens and one of the files is showing to the right, but the other gives an error "failed to open \\.\nul
".
I also tried another difftool, "diffmerge" which has instructions to configure the difftool, but it doesn't work and results in "cannot stat file".
I've also looked at a page on git-scm.com which talks about creating a script to pass in arguments, in addition to the .gitconfig stuff but it may be for mac and very vaguely described. So is an extra shell script needed? And how to configure it for windows.