Saturday, April 1, 2023
HomeSoftware EngineeringHow you can Setup Git on EC2 for AWS CodeCommit

How you can Setup Git on EC2 for AWS CodeCommit


Connect with the occasion:

chmod 400 KEYPAIR.pem
ssh -i KEYPAIR.pem [email protected]

Set up Git:

sudo yum set up -y git

Setup Git Credential Helper:

git config --global credential.helper '!aws codecommit credential-helper [email protected]'
git config --global credential.UseHttpPath true

Now you possibly can clone the CodeCommit repo which is able to 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