MacOSをアップデートして、git がエラーを出して使えない場合
git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
下記を実行する。
xcode-select --install
もし、アップデートが見つからないうんぬんのアラートが出た場合は下記を実行(自分がそれに該当した)
sudo su -
パスワード入力
xcode-select --switch /Applications/Xcode.app
xcode-select --switch /Library/Developer/CommandLineTools