You’ve just upgraded to Mac OS X El Capitan, used git (or some other commands from terminal) and encountered this error
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
you can “fix” this by running this command in your terminal
sudo xcode-select --install
a dialog will appear prompting you to install, just follow instructions and after install try your command again and it should be back to normal working state
Hope all that works well for you
More details on
- what’s xcode-select from How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)