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
本文介绍了如何在 CentOS 7.x 上安装 Git 2.x 版本,包括通过 IUS 和 Wandisco 仓库安装最新版本的 Git 的详细步骤。
4595

被折叠的 条评论
为什么被折叠?



