Git 2.x on CentOS 7.x
################################################################################ # Kali GNU/Linux Rolling ################################################################################ apt-get install git ################################################################################ # CentOS 7(安装最新版本) ################################################################################ yum install \ https://repo.ius.io/ius-release-el7.rpm \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum makecache yum install git2u-all.noarch # 全家桶(11/20/2019 git version 2.16.5) # 什么???你们还想要更新的版本??? # yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm # yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm yum makecache yum install git #(11/20/2019 git version 2.22.0)
参考文献
WikiNotes/安装(CentOS)
IUS/Setup
Update Git to the latest (help)
How to install latest version of git on CentOS 7.x/6.x