升级到macOS High Sierra后,执行git命令报错:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
xcode-select --install
如果还是有问题,尝试
xcode-select --reset