installing git on EC2 code example
Example 1: install git ec2 linux
#Create an EC2 instance with Amazon Linux 2 with internet access
#Connect to your instance using putty
#Perform a quick update on your instance:
sudo yum update -y
#Install git in your EC2 instance
sudo yum install git -y
#Check git version
git version
Example 2: insall git onec2
$ sudo yum install git
Example 3: installing git on ec2
sudo yum install git -y
Example 4: installing git in ec2
sudo yum update -y
sudo yum install git -y