How to use the Homebrew installed git on Mac? I have installed the newest version of git (1.8.3) using homebrew but when I type

git --version


in my terminal, it prints:

git version 1.7.10.2 (Apple Git-33)


What should I do to replace the old version of git with the new one?
Thanks everyone for helpful answers. In my case adding

export PATH="/usr/local/bin:${PATH}"


in ~/.bash_profile followed by

source ~/.bash_profile


solved the problem for my user.