gitintellij-idea

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?


Solution

  • 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.