After Apple released the new OS X El Capitan on Wednesday, Today I upgrade OSX Yosemite to El Capitain. But I see that Git doesn’t work after upgrading Mac OS X El Capitain.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I find a way to solve it. This is reinstall Xcode Command Line Tools. Open Terminal and type the following command
xcode-select --install