We’ve started moving our development away from Subversion to Git and naturally we discovered that the RHEL5 repositories don’t have Git available so here are some instructions on how to install it.
1. Grab the latest version of Git source
2. Un-gunzip-tar it
tar xvfz http://kernel.org/pub/software/scm/git/git-220.127.116.11.tar.gz
3. Configure and build the package
cd ./git-18.104.22.168 ./configure make make install
It’s worth noting that Git requires Zlib, so install a copy first if you don’t already have it.