Winmerge as Git Difftool on 64bit Windows 7
Every software developer’s day to day tasks includes keeping their software development tools up to date and running smoothly, today I got tired of viewing git differences in the raw and decided to hook winmerge up for viewing diffs.
Instructions for setting winmerge up as your Git difftool can be found here:
I tried to apply these instructions on Windows 7 64bit and had to make 2 changes to get it to work.
Change this command (run in git bash):
git config –global difftool.winmerge.cmd “winmerge.sh \”$LOCAL\” \”$REMOTE\””
git config –global difftool.winmerge.cmd ‘winmerge.sh “$LOCAL” “$REMOTE”‘
and in winmerge.sh, change this line:
“C:/Program Files/WinMerge/WinMergeU.exe” -e -ub “$1” “$2”
“C:\Program Files (x86)/WinMerge/WinMergeU.exe” -e -ub “$1” “$2”
After making these changes differences were shown in winmerge after issuing the difftool command.