Missing xcrun on OS X El Capitan

Today I updated my MacBook to the latest version of OS X, El Capitan.

The upgrade ran successfully and everything seemed great, except when I open the Terminal and realized that some of the commands that I use daily, like git or brew, started giving me the error below:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I found after a few googling that this error is origined by the lack of Xcode Command Line Tools.

The wired part is that I had the Command Line Tools installed in Yosemit. I guess that El Capitan remove it by default.

I only had to reinstall Xcode Command Line Tools with the command below, to fix the problem.

xcode-select --install

Why can't I comment?

Sorry, I disabled the comments in my blog. For comments or any questions, feel free to ask me on Twitter.