When the new OS version is ready to install a lot of developers are asking a question: Is everything will work after upgrade right after the release date? But not OS X users.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun ! Git appears to be installed incorrectly ! Ensure that `git --version` outputs the version correctly.