Mac OS: git was broken after last update
Problem:
~ % git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
How to fix (worked for me):
run next commands in the terminal
xcode-select --install sudo xcode-select --reset
Done.