Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix git path after MacOS Sierra update?

I have just upgraded from OS X 10.11 "El Capitan" to 10.12: "Sierra", and when I open intellijIdea, I get the following error:

Can't start Git: /usr/bin/git Probably the path to Git executable is not valid.

like image 717
Furkan Yavuz Avatar asked Oct 08 '16 17:10

Furkan Yavuz


3 Answers

My problem resolved after running xcode installation with following code from terminal:

xcode-select --install
like image 71
Furkan Yavuz Avatar answered Oct 18 '22 06:10

Furkan Yavuz


In recent MacOS updates the git path is :

/usr/local/Cellar/git/2.16.2/bin/git

Instead of 2.16.2 Choose your version

like image 36
Selvam Raju Avatar answered Oct 18 '22 06:10

Selvam Raju


just open xcode then xcode will ask you to accept new agreement press accept and then the problem will be solved

like image 1
faraz khonsari Avatar answered Oct 18 '22 06:10

faraz khonsari