背景 Mac 升级Big Sur IDEA GIT异常。内容如下: Сannot Run Git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决方案(亲测有效) 进入终端输入命令:xcode-select --install 等待安装完成,重启 IDEA 即可。