CentOS7.7自带git版本较老

先卸载自带git

# yum remove 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=1

gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

 

导入存储库GPG密钥

rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

 

安装git

# yum -y install git

 

完成之后验证一下

# git --version

相关文章:

  • 2021-12-14
  • 2021-12-07
  • 2022-12-23
  • 2021-05-25
  • 2022-03-03
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-16
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-08-06
相关资源
相似解决方案