CHIRAG CHOPRA
CHIRAG CHOPRA

Reputation: 71

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

Upvotes: 6

Views: 15619

Answers (3)

Akash A N
Akash A N

Reputation: 61

I ran into the same error on mac after updating the OS to Ventura. Tried the above solutions which did not solve the error,

xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates

What worked: System Settings --> Privacy and Security --> Developer Tools
Toggle the button next to Terminal

ScreenShot

Upvotes: 6

Patryk Rudnicki
Patryk Rudnicki

Reputation: 765

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.

Upvotes: 12

Ian G
Ian G

Reputation: 498

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!

Upvotes: 4

Related Questions