how to install git centos 8

C++
sudo dnf install git -y
git --verison
Source

Also in C++: