step 1
wget https://www.kernel.org/pub/software/scm/git/git-2.14.2.tar.gz
step 2
tar -xzf git-2.14.2.tar.gz
step 3 install dependenty
yum install gettext
yum install curl-devel
yum install perl-devel
yum install zlib-devel
step 4 compile
cd git-2.14.2 & ./configure & make && make install
原文链接:https://www.f2er.com/centos/375507.html