mac下出现xcrun: error导致git无法使用的解决办法
Have you upgraded to OS X El Capitan from App Store ?
您是否已从App Store升级到MAC电脑OS系统
Have you suddenly started getting the following error in your project?
您是否突然在项目中遇到以下错误
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
If yes, then here is the solution
如果是,那么这是解决方案
xcode-select --install
Remember, in MAC git is attached to XCode’s Command line tools.
请记住,在MAC git中附加了XCode的命令行工具。