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

  • Name of branch in pull request on GitHub
  • git key_from_blob and key_read error
  • Git proxy failure need asistance
  • Git on OSX is cloning symlinks as plaintext files
  • Adding a remote do we call the remote name origin or upstream?
  • Why cherry-pick pick change more than one commit?
  • How to know if there is a git rebase in progress?
  • Gitolite doesn't respect rules when accessed through httpd
  • git merge - merging two branches with different pointers
  • Tortoise Git - lost commits after a pull resulted in conflicts
  • How to git cherrypick all changes introduced in specific branch
  • How does Git know which repository to push to?
  • One Solution collect form web for “Two versions of git installed, currently using old one, how do I switch?”

    export PATH=/usr/local/bin:$PATH
    
    Git Baby is a git and github fan, let's start git clone.