## Git install to 2.* cent os
sudo yum groupinstall "Development Tools"
sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
# select your release from github
wget https://github.com/git/git/archive/v2.1.2.tar.gz -O git.tar.gz
# as per Jan 4th 2019
wget https://github.com/git/git/archive/v2.20.1.tar.gz -O git.tar.gz
tar -zxf git.tar.gz
cd git-*
make configure
./configure --prefix=/usr/local
sudo make install
git config --global user.name "Your Name"
git config --global user.email "This email address is being protected from spambots. You need JavaScript enabled to view it."
git config --list
user.name=Your Name
user.email=This email address is being protected from spambots. You need JavaScript enabled to view it.
# source
>> source: https://www.digitalocean.com/community/tutorials/how-to-install-git-on-centos-7