赞
踩
1、查看当前git版本
[root@Inboc-Gitlab-Runner builds]# git --version
git version 1.8.3.1
2、配置git源
cat >> /etc/yum.repos.d/wandisco-git.repo << EOF
[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
EOF
3、导入存储库GPG密钥
rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
4、安装新版本git并查看版本
yum install git -y
[root@Inboc-Gitlab-Runner builds]# git --version
git version 2.31.1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。