问题
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
回答1:
export PATH=/usr/local/bin:$PATH
来源:https://stackoverflow.com/questions/19231747/two-versions-of-git-installed-currently-using-old-one-how-do-i-switch