Updated installation guidance

The original 2013 example uses yum and Git 1.7.1. CentOS 6 and 7 are end-of-life. On supported modern RPM distributions, use the trusted package manager, for example sudo dnf install git, then check git --version. Cloning the Git source repository does not install or upgrade the executable; building from source requires separate documented build and installation steps. Prefer supported packages unless a specific source build is necessary.
Original article (2013)
yum install git
git --version
git version 1.7.1
Update git
git clone https://github.com/git/git
remote: Finding bitmap roots…
remote: Counting objects: 163718, done.
remote: Compressing objects: 100% (45304/45304), done.
remote: Total 163718 (delta 117789), reused 162282 (delta 116441)
Receiving objects: 100% (163718/163718), 50.96 MiB | 2.24 MiB/s, done.
Resolving deltas: 100% (117789/117789), done.
