Witt
Witt

Reputation: 253

Intellij - Cannot Run Git

I have noticed that on Version Control window, in tabs Log and Local changes there is no information. Only following error appears:

Error updating changes: Cannot identify version of git executable C:\Program Files\Git\cmd\git.exe

When I have clicked Test in Settings > Version Control > Git, entered above path in Path to Git executable following window appeared: Link

After typing in CMD command git --version I get output:

git version 2.17.0.windows.1

What is more after writing some code Intellij is not highlighting changes.

I don't have any idea why it is not working... Any ideas?

Upvotes: 15

Views: 45333

Answers (6)

Rstar37
Rstar37

Reputation: 544

  1. go to the terminal and type git --exec-path to get your git path.
  2. then go to IntelliJ and configure it, Click browse and select your git path.
  3. select git and hit test.

Note: on Mac Os, use / in finder to navigate easier.

Upvotes: 3

druk
druk

Reputation: 603

What worked for me in Mac osx

~ ⌚ 8:00:57
$ which git   
/Users/shashwat/.aw/pex_resources/scripts/binaries/git

Ans setting the path in Intellij enter image description here

Upvotes: 8

Pratyaksh Sharma
Pratyaksh Sharma

Reputation: 236

For me, only invalidating caches and restarting intellij worked. :)

Upvotes: 15

103style
103style

Reputation: 61

i got the same problem, and the config is right,

git works just when i cut down the internet, it got from the IT part in my company.

Upvotes: 0

Vinayak Dornala
Vinayak Dornala

Reputation: 1669

I am able to resolve the issue.

My GIT installation directory: C:\installations\Git\

WHAT WORKED

If I point the Git executable path to (C:\installations\Git\mingw64\bin\git.exe) it worked.

enter image description here

WHAT DIDN'T WORKED

enter image description here

Upvotes: 18

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7538

For some reason, IntelliJ cannot get any output from the command line client. Something similar is reported - https://youtrack.jetbrains.com/issue/IDEA-82445

It might be caused by antivirus software or UAC.

Upvotes: 2

Related Questions