1.
#yum-y install git
#git--version
The downloaded version is displayed at this time 1.7.1
2. Import the certificate
#rpm--import Http://apt.sw.be/RPM-GPG-KEY.dag.txt
3. Installing the Rpmforge source
Open URL http://pkgs.repoforge.org/rpmforge-release/To see the latest version that fits
#rpm-I http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm//CentOS 64-bit
4. Update the Rpmforge-extra source
#yum--enablerepo=rpmforge-extras Update
On the way there are options: Is this OK [y/n]: Select Y, will update all software, take a long time, directly select N.
5.
#yum-y Enablerepo=rpmforge-extras provides git//view the GIT version that fits the system
At this point, check to the latest Git version that matches
Git-1.7.12.4-1.el6.rfx.x86_64
6. Install git
#yum--enablerepo=rpmforge-extras Install git-1.7.12.4-1.el6.rfx.x86_64
7. See if the GIT version is more granular and successful
#git--version
git version 1.7.12.4//updated at this time
CentOS Install and update git