升级mac系统之后使用git时,出现了报错信息:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

重装xcode command line 得到解决

1
xcode-select --install