Last time when I was using brew and Git, which was a couple of weeks ago, everything was working perfectly fine. Now, however, when I type git --version
in the terminal I get
git: error: unable to find utility "git", not a developer tool or in PATH.
I do have a Git folder in my /usr/local directory though ...
If I try brew update
, I get the very same error, plus
Error: Failure while executing: git init.
brew install git
results in:
clang: error: unable to find utility "clang", not a developer tool or in PATH
otool: error: unable to find utility "otool", not a developer tool or in PATH
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
So, apparently, something is seriously wrong with my Git (and brew?) Installation or at least its path.
If I provide the path manually by entering
export PATH=/usr/local/git/bin:$PATH
in the terminal and then ask for my Git version, I get the correct output:
git version 2.3.5
Can someone tell me what's going wrong here or how I can fix my path for Git and brew in order to work again?