参考https://segmentfault.com/a/1190000020769651?utm_source=tag-newest 先卸载旧版 yum remove git 添加新源后安装新版(软件包 git2u 已经被 git216 取代) yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum install -y git216 检验 git version ————————————————————- 参考https://my.oschina.net/tonystark/blog/1920556 #