OS X (or Xcode) comes bundled with git 1.7.something, but after brew install git
(1.8.0), which git
keeps returning the old /usr/bin/git
.
This is what I get when I echo $PATH right now:
/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin
Shouldn't Homebrew stuff take precedence?
Also, I've no idea where that usr/local/git/bin
comes from at the end.
Best Answer
Got it. The answer is in your question; brew installs git to
/usr/local/git/bin
(not/usr/local/bin
) but since that's after/usr/bin
in your path, you get that one first. My comment forwhich -a git
should have pointed you in this direction.