IntelliJ - Git is not installed: Cannot identify version of git executable: no response

Viewed 13392

I'm using IntelliJ on my MacBook and get this message every time I open the app. I already checked the Preferences > Version Control > Git under "Path to Git executable" and set this path to the path that is shown in my terminal for "whereis git". Also, testing the path in the IntelliJ settings returns a "Git version is 2.30.1". What else can I do to fix this problem?

4 Answers

In my case the issue was solved by invalidating cache and restarting IDE. Simply go to Files -> Invalidate Caches -> Invalidate and Restart.

In my case, the IDE seems only be able to recognize the path of git as /usr/local/bin/git, but git is installed at /usr/bin/git. So I made a softlink between of them.

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

Open Preferences > Git > version control > git > Path to Git executables : set to

/usr/local/bin/git

or

/usr/bin/git

For people using windows with wsl2, IntelliJ might automatically detect the correct file, but sometimes is not able to access. Restarting wsl and IntelliJ helped for me:

  1. Restart wsl
  • Open cmd as admin
  • run "wsl.exe --shutdown"
  • run "wsl.exe"
  1. Restart intelliJ
Related