I\'m trying to integrate WinMerge with Git as I\'ve seen others done before on Windows 7 Ultimate.
I\'ve followed the following steps, but an error continues to show
Entering the settings via the command line has been covered by other answers. The .gitconfig
file for full 3-way merging with WinMerge could be configured like this (this example is from Windows):
[merge]
tool = WinMerge
[mergetool "WinMerge"]
cmd = \"C:\\Program Files\\WinMerge\\WinMergeU.exe\" -e -u -dl \"Local\" -dm \"Base\" -dr \"Remote\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" -o \"$MERGED\"
trustExitCode = true
keepBackup = false
[diff]
tool = WinMerge
[difftool "WinMerge"]
cmd = \"C:\\Program Files\\WinMerge\\WinMergeU.exe\" -e -u -dl \"Old $BASE\" -dr \"New $BASE\" \"$LOCAL\" \"$REMOTE\"
trustExitCode = true
Flag information:
trustExitCode = true
tells git to accept the output without further prompt.
keepBackup = false
will automatically delete the automatically generated *.orig
files.
Note: The $BASE and $MERGE variables when using difftool both simply contain the filename.