Just like CentOS 7, CentOS 8 provides git as a part of repository. You can simply install it by yum.
Setup Git server
To install Git server on CentOS 8, you will need to run below command line.
sudo yum install git-core
Once installation is done correctly, you will need to create a user git as following:
sudo useradd git sudo passwd git
To be updated later...
Useful web sites
https://www.linux.com/tutorials/how-run-your-own-git-server/