Git needs to call the code of libraries such as curl, zlib, openssl, expat, and libiconv. Therefore, install these dependency tools first. # Yuminstallcurl-develexpat-develgettext-developenssl-develzlib-devel: download the latest source code from the website http://git-scm.com/downloadand decompress it for installation. # Tar-zxf
Git needs to call the code of libraries such as curl, zlib, openssl, expat, and libiconv. Therefore, install these dependency tools first.
# Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
Download the latest source code from http://git-scm.com/downloadand decompress and install the code.
# Tar-zxf git-2012-01-11.tar.gz
# Cd git-2012-01-11
# Make prefix =/usr/local all
# Make prefix =/usr/local install
About Git http://www.linuxidc.com/Linux/2012-01/52311.htm
Now you can use GIT under RHEL.