Skip to content

Instantly share code, notes, and snippets.

@weivall
Forked from unok/.gitconfig
Created August 29, 2016 11:50
Show Gist options
  • Save weivall/93231f7701b1771998f298a899ec4d52 to your computer and use it in GitHub Desktop.
Save weivall/93231f7701b1771998f298a899ec4d52 to your computer and use it in GitHub Desktop.
gitconfig for intellij merge tool
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /Applications/IntelliJ\\ IDEA\\ 13.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\\ 13.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