netnr / update-git.sh
2020-09-01 16:12
CentOS 升级 git
git --version   # 当前版本

vi /etc/yum.repos.d/wandisco-git.repo   # 启用Wandisco GIT存储库,在此之前我们先写入新yum存储库配置文件,输入以下内容:

[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

# 如果安装很慢,可以尝试下面的代理
[wandisco-git]
name=Wandisco GIT Repository
baseurl=https://cors.zme.ink/opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://cors.zme.ink/opensource.wandisco.com/RPM-GPG-KEY-WANdisco

rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco    # 导入存储库GPG密钥

yum install git # 安装

# help
https://www.cnblogs.com/mrbug/p/12030777.html
ˆ