macOS 升级后Git不能使用

macOS系统升级后,使用Git出现问题,提示:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

因为Mac最新场景下安装Xcode时已经没有Command Line了,需要单独安装。
根据提示在使用命令

xcode-select --install

安装时最后结果是不能安装该软件

解决方法

Developer Apple上手动下载对应的Command Line Tools 安装