macOS 13.x Ventura升级后Git报错问题处理

401 阅读1分钟

执行git报错

无论执行git什么操作,都会提示:

image.png

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

解决方法

  1. 终端执行:
xcode-select --install
  1. 会弹出安装弹框,跟着下一步操作就可以了。
  2. 安装完成后,git pull可以正常使用 image.png