I just bought a new Mac with OS X Lion and I checked in the Terminal what version of git is installed by default. I got the answer
git --version
> git ver
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/gitwhich 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: