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