Git doesn't work after upgrading Mac OS X El Capitan.
After installing El Capitan, I have this error when I'm doing a git command:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Thanks Nafsaka for the highlight.
Here is the solution: Reinstalling Xcode Command Line Tools via Terminal
xcode-select --install