状況
あらゆるgitコマンドが同じエラーを吐くようになってしまった.
$ git --version
以下がエラーの内容.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
コマンドラインツールが無いとのことなので,xcode-selectをインストールする
$ xcode-select --install
インストーラが出てくるのでそれに従えばインストールできる.
結果
$ git --version
git version 2.20.1 (Apple Git-117)
どうやらmac OSをSierraにアップデートした所為らしい.