之前的某天升级了macOS High Sierra,今天在Git pull时候出现了
“xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun”
解决方法:
执行:
xcode-select --install
之后按要求安装后就可以正常使用git命令了