1.卸载git
yum remove git
2.安装源
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
3.安装git
yum install git
4.更新下git
yum update git
最后查看最终的git版本
git --version