官网下载地址:https://git-scm.com/download/linux
第一步:安装第三方存储库IUS
curl https://setup.ius.io | sh
第二步:安装git
yum -y install git2u
第三步:检查安装版本
git --version
CentOS7.6安装Git(IUS方式)
原文:https://www.cnblogs.com/betx/p/10348069.html