Ref Links:
Instructions
-
Find out the git configuration location
1 2#This command shows the git configuration location git config --list --show-origin -
Let’s say use the ~/.gitconfig
1 2 3 4 5 6 7 8 9 10vim ~/.gitconfig #=== Append lines below # $BASE => the temp directory path # $LOCAL => the first diff commit # $REMOTE => the second diff commit [difftool "winmerge"] cmd = {path to winmerge.exe e.g. /Y/Softwares/WinMerge/WinMergeU.exe} -e -u -r -wl -wr -dl \"$BASE\" -dr \"$BASE\" \"$LOCAL\" \"$REMOTE\" #=== Diff by git difftool -y --dir-diff {first commit} {second commit}