Sunday, April 14, 2024
HomeSoftware EngineeringHow you can Setup Git on EC2 for AWS CodeCommit

How you can Setup Git on EC2 for AWS CodeCommit


Hook up with the occasion:

chmod 400 KEYPAIR.pem
ssh -i KEYPAIR.pem ec2-user@EC2PublicIP

Set up Git:

sudo yum set up -y git

Setup Git Credential Helper:

git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true

Now you possibly can clone the CodeCommit repo which can look one thing like the next:

https://git-codecommit.us-east-1.amazonaws.com/v1/repos/My-Repo
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments