DEV Community

Iridium Cao
Iridium Cao

Posted on

Install git 2 on CentOS7

The default git version is 1.18, how to upgrade it to git 2?

yum install \
https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

sudo yum remove git*

sudo yum -y install  git2u-all

OK, it's done. Check the version now:

$ git --version
git version 2.16.6

Ref: https://ius.io/setup
https://computingforgeeks.com/how-to-install-latest-version-of-git-git-2-x-on-centos-7/

Top comments (0)