xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
解决方法
打开一个终端执行如下命令:
xcode-select --install
会弹出一个软件更新的弹窗,之后git就能正常使用了
如果执行安装提示如下内容:
错误记录:xcode-select: error: command line tools are already installed, use "Software Update" to install
则需要删除动作:
rm -rf /Library/Developer/CommandLineTools
然后再执行
xcode-select --install
此时如果Idea的git还不好用,可以选择重启Idea