Upgrading to Mac OS High Sierra today ends up in breaking git and some other developer stuff with the following message:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun
Simply run the following command to install the Command Line Tools for Xcode:
xcode-select --install
After that everything seems okay again.