Centos7.9使用第三方仓库来安装高版本的git
添加第三方仓库(使用 Wandisco 仓库)
[root@localhost ~]# git --version
git version 1.8.3.1
yum install -y https://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum clean all && yum makecache && yum repolist
yum install -y git
升级后的git版本
[root@localhost ~]# git --version
git version 2.41.0