mac系统升级后git报错

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

vscode中找不到关联的git也没办法切换分支了,在终端执行一下下面这个命令就好啦

xcode-select --install

你可能感兴趣的:(mac系统升级后git报错)