Last active
May 27, 2016 00:12
-
-
Save hube/9ebd9b23a93021cb77199d97858d972c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Configure git to use diffmerge as the difftool and mergetool | |
git config --global difftool.prompt false | |
git config --global diff.tool diffmerge | |
git config --global difftool.diffmerge.cmd "/usr/local/bin/diffmerge --nosplash \"\$LOCAL\" \"\$REMOTE\"" | |
git config --global merge.tool diffmerge | |
git config --global mergetool.diffmerge.trustExitCode true | |
git config --global mergetool.diffmerge.cmd "/usr/local/bin/diffmerge --nosplash --merge --result=\"\$MERGED\" \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment