「Mac」更新CommandLine後無法使用git指令問題

昨天更新Mac的Command Line Tools後發現使用git指令無法使用:

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

解決方式是在命令列下xcode-select --install後下載完就可以使用了。