执行 git 命令后,提示信息如下:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
运行如下命令:
xcode-select --install
等安装好了之后,git 就又可以用了。
如果不行可以试试下面的命令:
xcode-select --reset