Installing git from source ubuntu

May 14, 2009

When you have an old version of ubuntu but want a new version of git. And potentially have it already installed.

sudo apt-get update
sudo apt-get remove git-core
sudo apt-get install tcl8.4 tk8.4
sudo apt-get build-dep git-core

wget http://kernel.org/pub/software/scm/git/git-1.6.3.1.tar.gz
tar -zxvf git-1.6.3.1.tar.gz
cd git-1.6.3.1
./configure
make
sudo make install


sudo ln -s /usr/local/bin/git /usr/bin/git