mac执行git命令时候出现:

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

在终端输入:xcode-select --install

重装command line tools 就好了