In short, Git is not working after macOS Update.
What happened? When I tried to use git command line tool, I faced this error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
The error means that the xcode command line tools are not installed on this mac or need an update. This error occurs after almost every mac OS update / upgrade.
The fix for this error problem is to install xcode tools by this command:
xcode-select --install
after that accept the privacy policy and terms & conditions, then wait until the XCode tools installed on your system. That's it.