centos 7 安装git新版本 2.*

参考:

https://linuxize.com/post/how-to-install-git-on-centos-7/

创建文件:

/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=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

安装git

sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
sudo yum install git
git --version

输出:
git version 2.18.0

  

 

猜你喜欢

转载自www.cnblogs.com/wswind/p/10477386.html