Skip to content

Instantly share code, notes, and snippets.

@falexandre
Forked from bkrauska/gist:9742260
Created September 4, 2017 12:34
Show Gist options
  • Save falexandre/0484f3544ca1259b675e8c46b40f8b3b to your computer and use it in GitHub Desktop.
Save falexandre/0484f3544ca1259b675e8c46b40f8b3b 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment