#Install Git2.x On Centos
- Install WANDisco repo package:
yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
- Install the latest version of Git 2.x:
yum install git
- Verify the version of Git that was installed:
git --version
yum install -y http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
yum install -y git
git --version
Just automated your Command with Centos 7 and 6.