반응형
- Install p4merge from perforce.com
- Put the following bits in your ~/.gitconfig, and then you can do $ git mergetool and $ git difftool to use p4merge
- Note that $ git diff will still just use the default inline diff viewer :)
[merge] keepBackup = false tool = p4merge [mergetool "p4merge"] cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\"" keepTemporaries = false trustExitCode = false keepBackup = false [diff] tool = p4merge [difftool "p4merge"] cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$REMOTE\"" "\"$LOCAL\"" |
반응형