升級MacOS Sierra到Mac Mojave後執行git命令報錯:git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode-select --install
若是執行上述操做後仍有問題,能夠嘗試一下方法:macos