Several students reported this error when attempting to start Git after upgradingĀ OSX to El Capitan :
Error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Solution:
sudo xcode-select –install