执行git报错
无论执行git什么操作,都会提示:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
- 终端执行:
xcode-select --install
- 会弹出安装弹框,跟着下一步操作就可以了。
- 安装完成后,git pull可以正常使用