title: Git doesn't work on MacOS Catalina: "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing"
body: <p>After upgrading to MacOS X 10.15 Catalina, I cannot run any git commands in my shell:</p>
  <blockquote>
  <p>The default interactive shell is now zsh.</p>
  <p>To update your account to use zsh, please run <code>chsh -s /bin/zsh</code>.</p>
  <p>For more details, please visit <a href="https://support.apple.com/kb/HT208050" rel="noreferrer">https://support.apple.com/kb/HT208050</a>.</p>
  <p>~ | git</p>
  <p>xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun</p>
  </blockquote>
  <p>I thought there's a problem with my shell, so I followed the instructions to change the default Mac OS shell back to bash, using the GUI and also using the command line:</p>
  <pre><code>chsh -s /bin/bash
  </code></pre>
  <p>I also restarted the computer. However, I still see the same message, even though <code>echo &quot;$SHELL&quot;</code> outputs <code>/bin/bash</code>.</p>