无法在OS X El Capitan中启动Git

Ahm*_*ani 7 git macos osx-elcapitan

我将我的os x从小牛队升级到EL Capitan,当我想在android studio中使用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)

有人有解决方案吗?

Muh*_*Ali 16

看到这个解决方案

将Mac OS X更新为'El Capitan'后,我的本地git命令不再工作了.使用git命令时,命令行返回:

xcrun:错误:无效的活动开发人员路径(/ Library/Developer/CommandLineTools),缺少xcrun:/ Library/Developer/CommandLineTools/usr/bin/xcrun

解决此问题的解决方案是使用以下命令重新安装命令行开发人员工具:

xcode-select --install