ThomasReggi
ThomasReggi

Reputation: 59425

Two versions of git installed, currently using old one, how do I switch?

I need some help, I had a version of git installed a while back (not sure how) not using homebrew. I just installed with homebrew and I'm not sure how to use the new one instead of the old one. Ideas? Thanks in advance

$ which -a git
/usr/local/bin/git
/usr/bin/git
/usr/local/bin/git

$ which git
/usr/local/bin/git

$ /usr/bin/git --version
git version 1.7.5.4

$ /usr/local/bin/git --version
git version 1.8.4

$ git --version
git version 1.7.5.4

Upvotes: 3

Views: 3453

Answers (1)

FelipeC
FelipeC

Reputation: 9488

export PATH=/usr/local/bin:$PATH

Upvotes: 5

Related Questions