Mac OS下Git报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
一、Mac使用Git出现下面问题
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
二、原因
这是因为Mac更新系统为Catalina后出现问题
三、解决
xcode-select --install
ps:加sudo可以解决
四、效果
安装成功之后,测试 git