1) Go to https://git-scm.com/ and check out the latest version of Git
Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
yum groupinstall 'Development Tools'
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel
make configure
./configure --prefix=/usr/local
make all
make install
it happens
just learn more