CentOS7升級Git2的辦法

看了國內的文章,試了幾個都不好用啊,還是國外的哥們寫得簡單:centos7 - Install a newer version of Git on CentOS 7 - Server Fault,英語不好繼續往下看
方法1:

yum install epel-release
yum remove git
rpm -U https://centos7.iuscommunity.org/ius-release.rpm
yum install git2u

如果不行,可以用方法2:

sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
sudo yum install git

查看結果:

# git --version
git version 2.24.1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章