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


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

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

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.)


In recent MacOS updates the git path is :


Instead of 2.16.2 Choose your version

  • 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
    Commented 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 .