When the new OS version is ready to install a lot of developers are asking a question: Is everything will work after upgrade right after the release date? But not OS X users.

Unfortunately after upgrade to El Capitan 10.11 (from Yosemite) my command line git stopped work. I got such message:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
 !    Git appears to be installed incorrectly
 !    Ensure that `git --version` outputs the version correctly.

Continue reading “How to fix git after upgrade to El Capitan?”