Just like CentOS 7, CentOS 8 provides git as a part of default repository.