# Add the repository
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
 
# Install the latest version of git
yum install --enablerepo=webtatic git-all

Clean, simple and it works!