0

I recently updated my brew packages and noticed that there was an update to Git. I wanted to check out what it was some time later and punched in which git. To my surprise, the version of Git it returned was Darwin, not my fancy schmancy Homebrew installed Git 2.something.

I'm confused.

I have my PATH set at the bottom of .zshrc as: export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

and in etc/paths I moved usr/local/bin and usr/local/sbin above usr/bin in the list.

and yet which git returns usr/bin/git

I know that xcode uses the same version that's in usr/bin, as per this question, but I could've sworn I managed to get this overridden before.

Any help you can give is appreciated.

EDIT

echo $PATH returns:

/Users/bwstud/.rvm/gems/ruby-2.1.2/bin:/Users/bwstud/.rvm/gems/ruby-2.1.2@global/bin:/Users/bwstud/.rvm/rubies/ruby-2.1.2/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/local/sbin:~/bin:/user/local/bin /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/bwstud/.rvm/bin

Community
  • 1
  • 1
bwstud
  • 23
  • 7

0 Answers0