Guest User

Untitled

a guest
Aug 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. # Linux
  2. # add the following to "~/.gitconfig" file
  3.  
  4. [merge]
  5. tool = intellij
  6. [mergetool "intellij"]
  7. cmd = /usr/local/bin/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")
  8. trustExitCode = true
  9.  
  10. [diff]
  11. tool = intellij
  12. [difftool "intellij"]
  13. cmd = /usr/local/bin/idea diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
  14.  
  15.  
  16.  
  17. # Mac
  18. # add the following to "~/.gitconfig" file
  19.  
  20. [merge]
  21. tool = intellij
  22. [mergetool "intellij"]
  23. 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")
  24. trustExitCode = true
  25. [diff]
  26. tool = intellij
  27. [difftool "intellij"]
  28. cmd = /Applications/IntelliJ\\ IDEA.app/Contents/MacOS/idea diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
  29.  
  30.  
  31.  
  32. # Windows
  33. # add the following to "C:\Users\<username>\.gitconfig" file
  34.  
  35. [merge]
  36. tool = intellij
  37. [mergetool "intellij"]
  38. cmd = cmd.exe //c "\"d:/Install/Programming/Java/Ide/Idea/ideaIU-2018.1.1.win/bin/idea.bat\" merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
  39. trustExitCode = true
  40. [diff]
  41. tool = intellij
  42. [difftool "intellij"]
  43. cmd = cmd.exe //c "\"d:/Install/Programming/Java/Ide/Idea/ideaIU-2018.1.1.win/bin/idea.bat\" diff \"$LOCAL\" \"$REMOTE\""
Add Comment
Please, Sign In to add comment