Skip to content

Instantly share code, notes, and snippets.

@netnr
Last active Mar 10, 2021
Embed
What would you like to do?
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.eu.org/opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://cors.eu.org/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment