centos7安装最新版git

1、安装WANDisco仓储包

sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm


2、安装git

sudo yum install git


3、验证版本

git --version
原文地址:https://www.cnblogs.com/zhangmingcheng/p/12754882.html