安装最新版git
1.卸载旧版本
yum remove -y git
2.安装release源
yum install -y epel-release
#rpm -ivh https://centos6.iuscommunity.org/ius-release.rpm
rpm -ivh https://centos7.iuscommunity.org/ius-release.rpm
3.yum 安装最新版
yum list git2u
yum install -y git2u
git --version
ps 方式2
sudo yum -y install install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
sudo yum install git
ps: 学习文档
https://gitee.com/all-about-git
版权属于:sunjianhua
本文链接:https://www.sunjianhua.cn/archives/centos-git.html
转载时须注明出处及本声明,如果不小心侵犯了您的权益,请联系邮箱:NTA2MTkzNjQ1QHFxLmNvbQ==
腻害腻害