Without Homebrew
~/.bash_profile
file. Notice this command differs from kmikael's answer by what it puts in the file:
export PATH=/usr/local/git/bin:/usr/local/sbin/:[and so on]
export PATH="/usr/local/git/bin:/usr/local/sbin:$PATH"
echo 'export PATH="/usr/local/git/bin:/usr/local/sbin:$PATH"' >> ~/.bash_profile
ln -s /opt/local/bin/git /usr/bin/git
which git
should say the directory in the README.txt
file from the dmg.git --version
should say the updated version. echo $PATH
should start with /usr/local/git/bin:/usr/local/sbin: