Using PHPSTORM as .gitconfig [core] editor

Answered

I'd like to set pstorm as my core editor for git.

 

Here is a snippet of my .gitconfig file as an example. When I type "git commit" a new pane is opened as expected. However pstorm is not waiting for me to enter a message. And git just says "Aborting commit due to no message".

 

[core]
excludesfile = /Users/BIGdave/.gitignore_global
editor = pstorm
[diff]
tool = pstorm
[difftool]
prompt = false
[difftool.pstorm]
cmd = /usr/local/bin/pstorm diff "$LOCAL" "$REMOTE"
[merge]
tool = pstorm
[mergetool.pstorm]
cmd = /usr/local/bin/pstorm merge "$LOCAL" "$REMOTE" "$BASE" "$MERGED"

 

Other editors require some flags. For example to do this with sublimeText I set it to:  editor = subl -n -w

Sublime opens and git waits for me to save before moving on.

 

 

I 've tried a number of flags for pstorm. So far I always get an incorrect file path error. What would the flags be for pstorm in order for it to wait for me to save?

 

0
9 comments
Official comment

Hello,

 

Unfortunately those are the only commands available from command line/terminal. We had a little conversation with a team on this matter and all in all we wouldn't recommend to use PhpStorm as a Git editor. 

Avatar
Permanently deleted user

OK thanks. About the only thing it cant do.

0

Np, you're welcome! 

Feel free to get back to us if you have any difficulties in the future.

0
Avatar
Permanently deleted user

Looks like this stopped working in newset version possibnly?

 

[gui]
[gui]
[gui]
[gui]
[user]
name = daveferrara1
email = daveferrara1@gmail.com
[gui]
[gui]
recentrepo = /Users/BIGdave/home
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[push]
dfault = simple
default = simple
[core]
excludesfile = /Users/BIGdave/.gitignore_global
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
[diff]
tool = pstorm
[difftool]
prompt = false
[difftool.pstorm]
cmd = /usr/local/bin/pstorm diff "$LOCAL" "$REMOTE"
[merge]
tool = pstorm
[mergetool.pstorm]
cmd = /usr/local/bin/pstorm merge "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true

0
Avatar
Permanently deleted user

The difftool and mergetool don't open any longer from the terminal tab. I get an error of:  No IDE instance has been found. New one will be started.

 

0

Could you please check this in EAP build?

0
Avatar
Permanently deleted user

This just stopped wokring again - https://gist.github.com/jvandyke/4355099

 

0
Avatar
Permanently deleted user

Giving PhpStorm-EAP-162.1447.5.dmg a shot now

 

0
Avatar
Permanently deleted user

Yeah that restores it. It seems like something is different about it when it opens. Like its colored diffeerently.


"

0

Please sign in to leave a comment.