Unable to find utility “git” in Mac OS

Let’s fix this!!!

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

  1. Restart the Terminal, exit and open a new one and try again
  2. Restart the computer
  3. 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

Try the git again


Leave a Comment