Below are the general steps to install GIT
Login to machine and Open a terminal
Install Git by running the package manager command specific to your Linux distribution
$sudo apt install git
For Ubuntu or Debian-based
$sudo apt install git
For CentOS, Fedora, or Red Hat-based
$sudo dnf install git
$sudo yum install git
For openSUSE, use
$sudo zypper install git
Verify the Git installation
$git –version