Background
This took me a good half day to figure out so I thought it'd be useful to others in a similar situation. It's derived from
this post on StackOverflow[
^]. You can find more details there but I did have to make a few changes to get it fully working both under Cygwin and a plain Windows command prompt.
Last I checked this was working under:
Tying WinMerge to Git
- Create a file named git-difftool-winmerge-wrapper.sh and place it in your path. I just dropped it in my home directory. You can change the default Cygwin path to include your home directory by modifying the .bash_profile file (also in your home directory) and adding PATH=${PATH}:${HOME}
Running under Cygwin
Just run
git difftool.
Running under Windows command prompt
Ensure you have all necessary files in your path:
- git-difftool-winmerge-wrapper.sh
Run
git difftool.