To install git on your ubuntu system execute the below command:-
sudo apt update -y && sudo apt install git -y