Install Git on CentOS 5

Git

Install git on CENTOS 5

Code

Install the dependencies
----------------------------
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel

Get the git source code
----------------------------
wget http://codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz


untar the git source code
----------------------------
tar xvfz git-1.6.1.tar.gz

Install
----------------------------
cd git-1.6.1.tar.gz

make prefix=/usr/local all

make prefix=/usr/local install