18

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!

yt.
  • 327
  • 1
  • 2
  • 11
  • Did you separately download and install Git on your device? – Pawara Siriwardhane Mar 11 '21 at 13:02
  • 1
    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. – Gavin Mar 11 '21 at 13:05
  • Yeah i just downloaded a Git-2.30.2-64-bit and also a GitHubDesktopSetpup on my laptop, not really sure what they do though – yt. Mar 11 '21 at 13:05

5 Answers5

36

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

ahmetcgl
  • 376
  • 3
  • 6
11

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.

Francis Bacon
  • 4,080
  • 1
  • 37
  • 48
5

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

This solved the issue on my Mac.

xc0n42
  • 61
  • 1
  • 4
0

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

Splint
  • 11
  • 1
  • 5
  • Ive downloaded a 'Git-2.30.2-64-bit' from the website but i still dont think it works – yt. Mar 11 '21 at 13:08
0

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