Skip to content

Instantly share code, notes, and snippets.

@Adron
Created May 3, 2017 19:04
Show Gist options
  • Save Adron/b650ef841453ca676d247105eb684a3b to your computer and use it in GitHub Desktop.
Save Adron/b650ef841453ca676d247105eb684a3b to your computer and use it in GitHub Desktop.
A ~/.gitconfig Merge/Diff Tool Snippet
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
tool = intellij
[difftool "intellij"]
cmd = /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment