gitflow4idea: Error: Gitflow is not installed

When trying to start a new hotfix, feature or release the following error is returned in the event log:

13:18:29 Error: Gitflow is not installed
13:18:29 Error

Gitflow is installed and works as expected from both my external terminal and PHP Storms built in terminal.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 49 (10 by maintainers)

Most upvoted comments

brew install git-flow not work for me, but brew install git-flow-avh works. stackoverflow for this issue

brew install git-flow Also works.

For Mac from the terminal in a project run “git flow init” and then restart pycharm and everything will work.

I solved this problem by changing the “Path to Git executable” to /usr/local/bin/git instead of /usr/bin/git in PHP Storm GIT preferences.

I had the same issue on Mac OS X 10.9.5.

Changing Git’s path in IDE Preferences didn’t help because there’s no git executable in /usr/local/bin. I tried approach by @adonix and it was helpful, but I still had errors in IDE’s Control Version console:

git flow feature start MAPS-412
/usr/bin/git-flow: line 73: /usr/bin/gitflow-common: No such file or directory

Therefore, the solution:

sudo ln -s /usr/local/bin/git-flow /usr/bin/git-flow

sudo ln -s /usr/local/bin/gitflow-common /usr/bin/gitflow-common
sudo ln -s /usr/local/bin/git-flow-init /usr/bin/git-flow-init
sudo ln -s /usr/local/bin/git-flow-version /usr/bin/git-flow-version
sudo ln -s /usr/local/bin/git-flow-feature /usr/bin/git-flow-feature
sudo ln -s /usr/local/bin/git-flow-release /usr/bin/git-flow-release 
sudo ln -s /usr/local/bin/git-flow-hotfix /usr/bin/git-flow-hotfix
sudo ln -s /usr/local/bin/git-flow-support /usr/bin/git-flow-support
sudo ln -s /usr/local/bin/gitflow-shFlags /usr/bin/gitflow-shFlags

Hope it helps someone.

OpherV, I’m seeing this on MacOS 10.9 with git 1.8.3.4 and git flow 0.4.1. I could provide remote debugging support. And by this, I mean that when I try to run a git flow command in phpStorm I get the following message:

13:09:12.015: git flow feature start FirstTest
git: 'flow' is not a git command. See 'git --help'.
Did you mean one of these?
    reflog
    show

Just posting this solution in case anyone comes across with the same problem as I did in Max OSX 10.9.2. My solutions was this:

I executed this command:

$ which git
/usr/bin/git

$ which git-flow
/usr/local/bin/git-flow

I left my PhpStorm’s path to git executable as it was (e.g. /usr/bin/git), and made a symbolic link to git-flow to point to /usr/bin/ since my git executable lives in /usr/bin/:

$ sudo ln -s /usr/local/bin/git-flow /usr/bin/git-flow

Adding symbolic links for git executable to /usr/local/bin/ didn’t work. I also try to adding symbolic links to /opt/local/bin/ and that didn’t work also. Hopefully this will help someone.

I’m getting the same error. But I was able to resolve this problem.

Mac OSX: 10.7.5 PHPStorm: 7.0 Git: 1.7.7.5 (/usr/bin/git) Git-flow: 0.4.1_0 (/opt/local/bin/git-flow)

Error seems to occur and not in the same directory hierarchy path of git-flow path and probably git. It worked fine if you change the path of git.

ln -s /usr/bin/git /opt/local/bin/git

Best regards