installing git in ec2

C++
sudo yum install git -ysudo yum update -y
sudo yum install git -y
Source

Also in C++: