CentOS7升级Git版本到2.3教程

TangLu 运维 2023-11-08 208 0

CentOS官方YUM源或者国内主流YUM(如阿里、清华)中的Git版本都是到1.8.3的版本,这样就无法使用Git高版本中的一些功能,但是通过编译安装的方式又太过麻烦,最终找到一个可用的YUM仓库,按如下配置即可使用

vim /etc/yum.repos.d/wandisco-git.repo
[wandisco-git]
name=Wandisco GIT Repository
baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=0


安装或更新Git

yum -y udpate git
git --version
git version 2.39.1


评论