mac Sierra git error xcrun: error

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

 需要安装xcode:

xcode-select --install

 因为git依赖xcode command tool