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?
9 Answers
In my case the issue was solved by invalidating cache and restarting IDE. Simply go to Files -> Invalidate Caches -> Invalidate and Restart.
2 Comments
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
4 Comments
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:
- Restart wsl
- Open cmd as admin
- run "wsl.exe --shutdown"
- run "wsl.exe"
- Restart intelliJ
1 Comment
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!! :)
/usr/local/bin/git/usr/local/bin/gitand test it in the settings, it says "Git is not installed No such file"