Git 2.x on CentOS 7.x
################################################################################ # Kali GNU / Linux Rolling ################################################################################ apt-get install git ################################################################################ # CentOS 7 (install the latest version) ################################################################################ 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 # Family Bucket (11/20/2019 git version 2.16.5) # what? ? ? Do you still want an updated version? ? ? # 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)
references
WikiNotes/安装(CentOS)
IUS/Setup
Update Git to the latest (help)
How to install latest version of git on CentOS 7.x/6.x