git获取地址:
https://github.com/git/git/releases
https://www.kernel.org/pub/software/scm/git/
1.安装依赖
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel yum install gcc-c++ perl-ExtUtils-MakeMaker yum remove git
2.下载高版本git,并且安装
wget https://www.kernel.org/pub/software/scm/git/git-2.7.3.tar.gz tar -zxvf git-2.7.3.tar.gz cd git-2.7.3 ./configure --prefix=/usr/local/git make && make install ln -s /usr/local/git/bin/git /usr/bin/git