How to install git in linux operating system

Ubuntu
Run the following command to install git in ubuntu operating system

sudo apt update
sudo apt install git

Centos
Run the following command to install git in Centos operating system

sudo yum update
sudo yum install git

How to check the version of git

git --version

Youtube

Git part-1