Issue
– Git doesn’t work after upgrading Mac OS to X El Capitain
– Output when you run git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Solution
– run the following command as a user
xcode-select --install
– This will pop-up a window and continue with it.
– Once finished, run the git command again.
– You are done. 🙂