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
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
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:
sudo xcode-select --switch /Application/Xcode.app/Contents/Developer
(this step may be optional)sudo xcodebuild -license
agree
and press enterI hope this helps others!
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