Git on Red Hat Enterprise Linux (RHEL) 4 i386

I have been struggling with this for a while now. There is no yum to begin with and up2date doesn’t help much either (no git-* packages). Here is a quick solution:

$ cd ~
$ wget
$ wget
$ rpm -ivh --nodeps git-1.7.3-1.el4.rf.i386.rpm perl-Git-1.7.3-1.el4.rf.i386.rpm
$ git --version

You can browse for the latest packages and update the above accordingly.