遇到问题
升级了macOS的最新系统以后,本来一直没有任何问题的git出现了下面的报错:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun:

解决办法:
终端执行如下命令
xcode-select --install
等待安装完成,再在终端执行git命令,git命令就可以正常运行
所有评论(0)