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-126.96.36.199.tar.gz
3. Configure and build the package
cd ./git-188.8.131.52 ./configure make make install
It’s worth noting that Git requires Zlib, so install a copy first if you don’t already have it.