git error occurs after mac update. 「xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcr

This git error occurs after update mac.

git --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

The solution is install command line tool via terminal.

xcode-select --install

devbash, git, mac

Posted by sakony