git コマンドで突如エラー
macOSをMontereyにアップデートしたらこんなエラー( xcrun: error: invalid active developer path )が出てなぜか動かない。
| 1 2 | % git status xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun | 
macにコマンドライン開発者ツールをインストールして解決
どうやらコマンドライン開発者ツールを入れてあげればいいようなので、ターミナルから以下のコマンドを実行。
| 1 | % xcode-select --install | 
ウィンドウが立ち上がるのでYesマンになってインストール。
以下のような画面が出てきたらOK

この後 git コマンドを実行してみる。
| 1 2 3 4 5 6 | % git status             On branch master Changes not staged for commit:   (use "git add <file>..." to update what will be committed)   (use "git restore <file>..." to discard changes in working directory)         modified:   wp-content/themes/ ・・・・ | 
ちゃんと表示された!
一件落着。

