In the last link suggested the author used macports to install/update git, I prefer to compile it from source, it’s a really simple and quick operation!
First we need to download the source:
$ curl -O http://kernel.org/pub/software/scm/git/git-1.6.3.2.tar.gz
Now we expand the archive:
$ tar xfvz git-1.6.3.2.tar.gz
enter in the new directory:
$ cd git-1.6.3.2
and prepare everything:
$ ./configure && make && sudo make install
(it will ask the password)
Now we have a fresh install of git! If you want to check it you can do:
$ git --version
git version 1.6.3.2
That’s all! :)