Git doesn't work after upgrading Mac OS X El Capitan

Kevin picture Kevin · Oct 3, 2015 · Viewed 9.5k times · Source

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

Answer

Kevin picture Kevin · Oct 3, 2015

Thanks Nafsaka for the highlight.

Here is the solution: Reinstalling Xcode Command Line Tools via Terminal

xcode-select --install