Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: unable to find utility "git", not a developer tool or in PATH

Tags:

I have updated Xcode version to 7.3.1.when I use 'git status',I find an error! as follow:

$git status
sh: line 1:  1601 Segmentation fault: 11  /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH

Thank you advanced!

like image 454
wenyc Avatar asked Jun 06 '16 02:06

wenyc


1 Answers

This happened to me also with upgrading to High Sierra and XCode to 9. This sequence has fixed it.

xcode-select --install
sudo xcode-select -s /Library/Developer/CommandLineTools

Found this answer on https://davidwalsh.name/fix-git-high-sierra-upgrade (article and comments.)

like image 152
Gedas Kutka Avatar answered Sep 27 '22 17:09

Gedas Kutka