Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 937
Witt Avatar asked Jan 14 '19 16:01

Witt


2 Answers

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

like image 115
Vinayak Dornala Avatar answered Sep 21 '22 19:09

Vinayak Dornala


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

like image 37
druk Avatar answered Sep 20 '22 19:09

druk