# remove the old one
$ sudo yum -y remove git
# add End Point Dev repo
$ sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.9-1.x86_64.rpm
# install git
$ sudo yum install git
# check version
$ git --version
@source: https://computingforgeeks.com/how-to-install-latest-version-of-git-git-2-x-on-centos-7/