CentOS安装新版git——超简单

忘了从哪里弄来的,CentOS6安装新版git的利器:

CentOS6: 

#安装Git
yum install -y epel-release
rpm -ivh https://centos6.iuscommunity.org/ius-release.rpm
yum list git2u
yum install -y git2u
git --version

CentOS7: 

#安装Git
yum install -y epel-release
rpm -ivh https://centos7.iuscommunity.org/ius-release.rpm
yum list git2u
yum install -y git2u
git --version


可以说是见到过的最简单的办法了

你可能感兴趣的:(Git)