I'm sure there are tons of blogs out there on the same subject. This is just like a reference for me and others out there who might stumble upon this post. Note that what I have documented here is what worked for me. At the time of writing the latest GIT version was 1.7.1
- First we install the dependent packages, thus you wont have to install the packages yourself.
$ sudo aptitude build-dep git-core
- Download latest stable GIT release from here
$ wget http://kernel.org/pub/software/scm/git/git-1.7.1.tar.gz
- Extract the archive and change to the extracted directory
# tar xvzf git-1.7.1.tar.gz
# cd git-1.7.1/ - Run the following
$ ./configure
$ make
$ sudo make install - Check installation and clean up
$ git --version
$ cd ../;rm -r git-1.7.1 git-1.7.1.tar.gz