title: Invalid active developer path error after upgrading to El Capitan
body: <p>I ran into this error trying to push to git, when I typed git init.</p>
  
  <blockquote>
    <p>xcrun: error: invalid active developer path<br>
    (/Library/Developer/CommandLineTools), missing xcrun at:
    /Library/Developer/CommandLineTools/usr/bin/xcrun</p>
  </blockquote>
  
  <p>I tried the following solutions.</p>
  
  <pre class="lang-sh prettyprint-override"><code>xcode-select —install
  sudo xcode-select -switch
  sudo xcode-select —install
  brew doctor
  brew update
  brew upgrade
  brew cleanup
  </code></pre>