# 1.通過git源升級, vim /etc/yum.repos.d/wandisco-git.repo
# 2.新建配置文件
[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.更新git
yum -y update git
如果更新的過程裏出錯,則移除,重新安裝
yum remove git
yum install git
# 4.校對版本
git --version