inconnu
inconnu

Reputation: 769

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

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?

Upvotes: 43

Views: 47349

Answers (9)

Balachandar
Balachandar

Reputation: 402

I faced the same issue when switching my terminal profile from "Basic" to "Homebrew," but everything worked fine after reverting back.

Upvotes: 0

WestCoastProjects
WestCoastProjects

Reputation: 63249

Restarting Pycharm fixed this problem: I did not need to Invalidate Caches or fix the git executable path.

Upvotes: 0

Bigeyes
Bigeyes

Reputation: 1686

All of the methods above are not working for me.

First of all, I Invalidate Caches -> Invalidate and Restart. Secondly, I have to run the git command manually. Then it seems trigger something internally to find git path, I guess. Afterwards it is working.

Upvotes: 3

Priyanka B
Priyanka B

Reputation: 139

Just update/install git with following command:

brew install git

Go to Intellij IDEA (Top left corner) -> Preference -> Version control -> Git -> Enter "/usr/local/bin/git" (generally git is installed in this path to verify it once, you can enter the same in finder) for "Path to git executable"

Boom!! Your Git is back.

Cheers!! :)

Upvotes: 0

Rick Royd Aban
Rick Royd Aban

Reputation: 906

In my case, I fixed this issue by going to Preferences > Build, Execution, Deployment > Build Tools > Gradle and update Gradle JDK from 1.8 to 11

Upvotes: 0

Benedikt Böhm
Benedikt Böhm

Reputation: 351

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

Upvotes: 5

Ali Ashraf
Ali Ashraf

Reputation: 1919

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

/usr/local/bin/git

or

/usr/bin/git

Upvotes: 8

zphou00
zphou00

Reputation: 364

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 

Upvotes: 24

Hovik Antanisyan
Hovik Antanisyan

Reputation: 1029

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

Upvotes: 101

Related Questions