git is available as an EPEL package.
First, activate EPEL via
$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
NOTE:That exact URL will change with time. I took it from the EPEL FAQ.
Next, install the git package.
$ sudo yum install git