We should first remove git if you have installed it from repositories:
sudo apt-get remove git git-svn
Create a temporary directory on your local folder where you’ll download git.
mkdir ~/sources cd sources/
Go to http://git.or.cz/ and download their latest stable version. Currently it’s v1.6.3.
wget http://kernel.org/pub/software/scm/git/git-1.6.3.tar.gz
Issue the apt-get command to get dependencies,
sudo apt-get build-dep git-core
extract the git source,
tar xzvf git-1.6.3.tar.gz
get inside the extracted git directory,
cd git-1.6.3 ./configure make sudo make install
and to see if git is installed,
git --version $ git version 1.6.3
Mclovin!!!
Hope all works for you, and let me know your comments.
Thanks! It worked on Ubuntu 8.10 (Intrepid Ibex).
Fantastic! Worked like a charm. Thanks for the instructions. New to Linux, and needed the helping hand!
Worked perfect (Ubuntu 8.04.2) – thanks!
Worked with no problems on Ubuntu Server 8.10. Cheers!
Worked great! Thank you very much!
Thanks for the great instructions. Worked like a charm on Ubuntu 8.04.3 LTS (Hardy Heron). Wish I could find other ‘how-tos’ that were as good as this one.
Thank you very much, it work without a hitch. Great tutorial!
Very accessible. Thanks