さっそくCatalinaにアップデートしてみましたが、恒例のやつです。
Gitコマンドが動かなくなったのでまたメモです。内容は全く同じ。
毎年やってる(笑)けど、ハマったときの検索ワードがOSアップデートによっても変わってくるのでまた残しておきます。
$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
以下のコマンドで直ります
$ xcode-select --install
インストーラーが立ち上がるのでインストールしましょう。


ちなみにこのコマンドを実行と、今回はこんな感じのエラーも同時に出てましたが気にせず大丈夫です。
xcode-select: note: install requested for command line developer tools
無事にインストールできました。
$ git version
git version 2.21.0 (Apple Git-122)