CentOS7升级Git版本到2.3教程
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
版权声明:本文章版权归数据库运维网(www.ywdba.cn)所有。如需引用本站内容,请注明来源及作者。
评论