Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij: Cannot Run Git File Not Found: /usr/local/bin/git

In Intellij I'm receiving the error message that is in the title of this question: Cannot Run Git File Not Found: /usr/local/bin/git.

The file, however, does exist. I've tried selecting it in the configuration dialog, but without success.

The problem does not seem to be present in VS Code.

Anyone have an idea why this is happening?

like image 814
Josh Avatar asked Aug 14 '18 19:08

Josh


1 Answers

You need to setup git properly, go to Settings, then File | Settings | Version Control | Git and edit Path to Git executable field. If you enter path to Git (which git in terminal) - usually /usr/bin/git and press Test it may popup a more informative message. Also check the rights of the git executable.

like image 181
streetturtle Avatar answered Nov 14 '22 23:11

streetturtle