Skip to content

Instantly share code, notes, and snippets.

@nordineb
Forked from tomdwp/.gitconfig
Last active October 14, 2021 05:33
Show Gist options
  • Save nordineb/7e500edbd3af6ee1d6fbce01d6d2ef47 to your computer and use it in GitHub Desktop.
Save nordineb/7e500edbd3af6ee1d6fbce01d6d2ef47 to your computer and use it in GitHub Desktop.
Git diff and merge with p4merge (macOS)
[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