简体   繁体   中英

INTELLIJ IDEA ERROR: "Can't start Git: /usr/bin/git Probably the path to Git executable is not valid. Fix it." How to Fix it?

I updated my mac to macOS Mojave version 10.14, I already had Xcode installed in the previous OS version and now while I run intelliJ this error is thrown:-

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

Screenshot of the error

To solve this problem you need to install xcode developer tools.

Run this command, the problem will be fixed:

xcode-select --install

I had the same problem after upgrade and this solved it.

I performed the following steps to solve this problem:

  1. Run sudo xcode-select --switch /Application/Xcode.app/Contents/Developer (this step may be optional)
  2. Open App Store
  3. Update xcode
  4. Wait for update to complete before continuing with next steps
  5. Run sudo xcodebuild -license
  6. Press enter key to view agreement (to page down the agreement hold space or press it multiple times)
  7. Once at the end of the agreement if you agree type agree and press enter
  8. Close and re-open IntelliJ and GIT should work again.

I hope this helps others!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM