Skip to content

Instantly share code, notes, and snippets.

@vitorhsb
Created January 11, 2018 00:23
Show Gist options
  • Save vitorhsb/9b06a163ef6ba64429f6882dda31373b to your computer and use it in GitHub Desktop.
Save vitorhsb/9b06a163ef6ba64429f6882dda31373b to your computer and use it in GitHub Desktop.
Set DiffMerge as Git merge and diff tool (Linux)
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd "/usr/bin/diffmerge --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 "/usr/bin/diffmerge --nosplash \"\$LOCAL\" \"\$REMOTE\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment