升级Git到2.x版本

升级Git到 2.x
https://github.com/git/git/tree/v2.17.0 找个稳定版本,找个最新Tag就行了
https://www.kernel.org/pub/software/scm/git/ 从这下载,因为github下载比较慢

环境: CentOS 7.x

su - root #使用root
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker #安装依赖
wget https://www.kernel.org/pub/software/scm/git/git-2.13.1.tar.gz #下载
tar xzf git-2.13.1.tar.gz 
cd git-2.13.1
./configure
make
make install

你可能感兴趣的:(升级Git到2.x版本)