-
-
Save tomdwp/5b439e90c435c1e875baeef324d3e789 to your computer and use it in GitHub Desktop.
Git diff and merge with p4merge (macOS)
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
[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 "\"$LOCAL\"" "\"$REMOTE\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-- either from perforce.com
-- or if you have homebrew, install it with:
brew cask install p4merge
-- if you don't think you have that file, run
ls -al ~
to verify-- if you don't, then run
touch ~/.gitconfig
git mergetool
andgit difftool
to use p4mergegit diff
will still just use the default inline diff viewer