Delete existing command line tools and install them again.
ℹ This requires root to run.
# uninstall command line tools
sudo rm -rf /Library/Developer/CommandLineTools
# install command line tools
xcode-select --install Delete existing command line tools and install them again.
ℹ This requires root to run.
# uninstall command line tools
sudo rm -rf /Library/Developer/CommandLineTools
# install command line tools
xcode-select --install