升级Mac OS X El Capitan后,Git无效

Kev*_*vin 26 git macos xcrun osx-elcapitan

升级Mac OS X El Capitan后,Git无效.

安装El Capitan后,我在执行git命令时遇到此错误:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Run Code Online (Sandbox Code Playgroud)

Kev*_*vin 59

感谢Nafsaka的亮点.

这是解决方案:通过终端重新安装Xcode命令行工具

xcode-select --install
Run Code Online (Sandbox Code Playgroud)

  • 感谢您发布此内容,当您更新到Sierra时也是如此 (4认同)