Got this error “unable to find utility git” when running git?
sh: line 1: 4031 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
Things to Try
- Restart the Terminal, exit and open a new one and try again
- Restart the computer
- If the above doesn’t work, try the command below
Commands to Run
xcode-select --install
sudo xcode-select -s /Library/Developer/CommandLineTools
Sample Output of the Commands
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
$ sudo xcode-select -s /Library/Developer/CommandLineTools
Password:
Try the git again
git