Skip to content

Instantly share code, notes, and snippets.

@bkrauska
Last active August 4, 2022 06:57
Show Gist options
  • Save bkrauska/9742260 to your computer and use it in GitHub Desktop.
Save bkrauska/9742260 to your computer and use it in GitHub Desktop.
DiffMerge git mergetool & difftool setup
Install http://download-us.sourcegear.com/DiffMerge/4.2.0/DiffMerge_4.2.0.697.stable_x64.msi
// this is an adaptation of http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge
Then run the following commands from the git bash
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd "sgdm --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE"
git config --global mergetool.diffmerge.trustExitCode true
git config --global mergetool.keepBackup false
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd "sgdm \$LOCAL \$REMOTE"
@lavakummarr
Copy link

Thank you ,its working

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