Skip to content

How to Setup Git on EC2 for AWS CodeCommit

Connect to the instance:

chmod 400 KEYPAIR.pem ssh -i KEYPAIR.pem [email protected]
Code language: Bash (bash)

Install Git:

sudo yum install -y git
Code language: Bash (bash)

Setup Git Credential Helper:

git config --global credential.helper '!aws codecommit credential-helper [email protected]' git config --global credential.UseHttpPath true
Code language: Bash (bash)

Now you can clone the CodeCommit repo which will look something like the following:

https://git-codecommit.us-east-1.amazonaws.com/v1/repos/My-Repo
Code language: plaintext (plaintext)

See also  How Fast is your Website?
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x