-
Notifications
You must be signed in to change notification settings - Fork 0
Mac更新系统后无法使用git
shewenbiao edited this page Apr 17, 2020
·
1 revision
更新了系统后,进入到git工程目录,输入git命令,提示错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
1.启动WebStorm和IDEA后提示:
can't start git: /usr/bin/git
probably the path to git executable is not valid . fix it.
2.解决办法是在终端输入:
xcode-select --install
每次更新系统之后xcode就被卸载了,需要重新安装一次。