2

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.

3 Answers 3

7

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

xcode-select --install
1
  • 1
    Great! I probably shouldn't have posted my answer, then. (:
    – SilverWolf
    Oct 20, 2017 at 15:23
1

Do you have Xcode installed? Try xcode-select -p to print where the system thinks it is, and xcode-select -s /path/to/Xcode.app to tell the system where it is. (Git is stored inside Xcode.)

-1

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

1
  • You have shared the path for Git installed via Homebrew. OP has not mentioned if he has installed Git via Homebrew or not.
    – Nimesh Neema
    May 5, 2018 at 10:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .