Skip to content

Instantly share code, notes, and snippets.

@kraihn
Created June 15, 2017 13:24
Show Gist options
  • Save kraihn/0793dda5877ed1e709be4b4a5c85ef33 to your computer and use it in GitHub Desktop.
Save kraihn/0793dda5877ed1e709be4b4a5c85ef33 to your computer and use it in GitHub Desktop.
WebStorm as Git mergetool
[merge]
tool = webstorm
[mergetool "webstorm"]
cmd = cmd.exe //c "\"FULL_PATH_TO-->/webstorm.bat" merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"\"
trustExitCode = true
[diff]
tool = webstorm
[difftool "webstorm"]
cmd = cmd.exe //c "\"FULL_PATH_TO-->/webstorm.bat" diff \"$LOCAL\" \"$REMOTE\"\"
@kraihn
Copy link
Author

kraihn commented Jun 21, 2017

The path must be to the .bat file, and this can alternatively be used with IntelliJ Community Edition.

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