如题:
➜ ~ git --version
sh: line 1: 5402 Bus error: 10 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH
解决方法:
➜ ~ xcode-select --install
安装完后,再输入下面的命令
➜ ~ sudo xcode-select -s /Library/Developer/CommandLineTools
之后,再输入git 命令就好了:
➜ ~ git --version
git version 2.24.3 (Apple Git-128)