'Git is not installed' on intellij
Asked Answered
M

6

25

Hi i am trying to link up my a java group project from github to intellij. However i keep getting this issue with Git, i download it but then i try again and it asks me to download it again?

enter image description here

I've looked up the 'Paths to Git executable' and this is what it shows

enter image description here

But i really don't understand why this is not working. I am new to github and would really appreciate some help on this!

Madore answered 11/3, 2021 at 12:57 Comment(3)
Did you separately download and install Git on your device?Balmacaan
When you set git up did you hit the test button? I get this issue intermittently, I go IntelliJ's properties and test that git is installed, and then restart IntelliJ using the 'invalidate caches and restart' option and usually once IntelliJ restarts git is detected correctly and I can continue to work. I am on MacOS. It is one of an increasing number of issues/concerns I have about IntelliJ.Mcgregor
Yeah i just downloaded a Git-2.30.2-64-bit and also a GitHubDesktopSetpup on my laptop, not really sure what they do thoughMadore
L
43

I noticed that I had the same problem after installing Github Desktop for a few days. I uninstalled it because I was just testing it anyway and found my git in my system by the following code:

which git

That command showed me the following output:

/usr/bin/git

So I entered this into 'Path to Git executable' in the Preferences > Version Control > Git. And restarted the IDE. Everything works now...

Lurdan answered 20/12, 2021 at 18:3 Comment(2)
this didn't work for me. Path was correct. Deactivating and reactivating the Git plugin helpedUnstopped
Worked for me even without restarting IntelliJ. Don't forget to click "Apply".Breastbone
L
17

For me, I can see the git is installed on me, but somehow Android Studio could not find it.

in Android Studio, File -> Invalidate Cache -> Invalidate and Restart

Will fix the issue for me.

Lovieloving answered 28/7, 2022 at 23:30 Comment(0)
J
8

Preferences -> Plugins Deactivate the bundled Git plugin, restart PhpStorm and activate it again

This solved the issue on my Mac.

Jalopy answered 17/9, 2021 at 11:25 Comment(1)
@NickMcCurdy This answer also specified to activate it again, so it would not prevent them from using git.Bachman
T
0

I believe you should have a dedicated Git client installed. The official client can be found at: https://git-scm.com/

Tchad answered 11/3, 2021 at 13:4 Comment(1)
Ive downloaded a 'Git-2.30.2-64-bit' from the website but i still dont think it worksMadore
W
0

Manually updating the path for git in Intellij worked for me.

Wharfinger answered 16/6, 2022 at 21:43 Comment(0)
P
0

If you see the message: "Hey!! you need to set exclusions in Windows defender or else it will impact my performance". Please ignore Microsoft Defender or Added exclusions in Windows defender.

I think that it impacted the git.

Pneumothorax answered 19/7 at 15:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.