1. The package needs to compile git
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel # yum install gcc perl-ExtUtils-MakeMaker
2. Delete the existing git
# yum remove git
3. Download the git source code can be downloaded ftp upload their own good
# cd /usr/src // wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz # Tar xzf go-2.0.5.tar.gz
4. compile and install
# Cd git-2.4.5 # make prefix=/usr/local/git all # make prefix=/usr/local/git install # Echo "export PATH = $ PATH: / usr / local / git / bin" >> / etc / bashrc // add an environment variable # source /etc/bashrc
5. Check the version number
# git --version