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.


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 Oct 20 '17 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 May 5 '18 at 10:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.