1.安装WANDisco仓库

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

2.git安装

yum -y install git
git version