Skip to content

Instantly share code, notes, and snippets.

@xnohat
Forked from shawndumas/.gitconfig
Last active January 17, 2021 09:25
Show Gist options
  • Save xnohat/a3d8b70fad27859aa060cfc48ba3d5b5 to your computer and use it in GitHub Desktop.
Save xnohat/a3d8b70fad27859aa060cfc48ba3d5b5 to your computer and use it in GitHub Desktop.
Using WinMerge as the git Diff/Merge Tool on Windows 64bit
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge
trustExitCode = true
cmd = "/c/Program\\ Files\\ \\(x86\\)/WinMerge/WinMergeU.exe" -u -e -wl -wr $LOCAL $BASE $REMOTE -o $MERGED
[diff]
tool = winmerge
[difftool "winmerge"]
name = WinMerge
trustExitCode = true
cmd = "/c/Program\\ Files\\ \\(x86\\)/WinMerge/WinMergeU.exe" -u -e $LOCAL $REMOTE
@xnohat
Copy link
Author

xnohat commented Jan 17, 2021

new version of WinMerge need change merge command args to

-u -e -wl -wr $LOCAL $BASE $REMOTE -o $MERGED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment