I found it is impossible to find lastest Git in yum repo. Fortunately, the Git source base has provided make rule to build RPM package. Note you have to build the rpm from the source code repo. Building rpm from source tarball is not supported.
yum install curl-devel expat-devel xmlto asciidoc
git clone https://github.com/git/git.git
Find the rpms in
yum remove git-all git
yum clean packages
yum install createrepo
- Create repo file: