1. 卸载自带Git
$ sudo yum remove git
2. 安装repo
新增 /etc/yum.repos.d/wandisco-git.repo
文件,填充以下内容:
[wandisco-git]
name=Wandisco GIT Repository
baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
3. 导入存储库GPG密钥
$ rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
4. 安装最新版的git
$ sudo yum install git