MacOS – How to fix git path after MacOS Sierra update

gitmacos

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.

Best Answer

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

xcode-select --install
Related Question