Latest Git on Centos7
Centos 7 comes with a really old version of Git that is missing handy features like hooks.
Here is how to compile the latest version of Git on CentOS 7 yourself.
Start with updating the system.
Install dnf package manager to get all the improvements over yum.
Add EPEL repository to access packages that are not in the standard repositories.
Install build dependencies.
Dowload source, verify and extract.
As of writing the latest version of git is 2.38.1
however there may have been a newer version released by the time you are reading this. You can go to this webpage to check if there is a newer version.
Build⌗
Set output to home drive
Run make