Skip to content

Instantly share code, notes, and snippets.

@stoe
Created August 4, 2015 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoe/c380fc174d8345740dab to your computer and use it in GitHub Desktop.
Save stoe/c380fc174d8345740dab to your computer and use it in GitHub Desktop.
WebStorm DiffMerge
[mergetool]
keepBackup = false
[merge]
tool = wstorm
[mergetool "wstorm"]
cmd = /Applications/WebStorm.app/Contents/MacOS/webstorm 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
[difftool]
prompt = false
[diff]
tool = wstorm
[difftool "wstorm"]
cmd = /Applications/WebStorm.app/Contents/MacOS/webstorm diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
@stoe
Copy link
Author

stoe commented Aug 4, 2015

Add this to ~/.gitconfig to use WebStorm as a diff- and mergetool.

Usage:

  • git difftool
  • git mergetool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment