codecommit - cirelledo-csa/herd GitHub Wiki
CodeCommit
-
codecommit is an AWS git service. Here's how to create a repo:
aws codecommit create-repository --repository-name "my-app" --repository-description "my app details..."
-
If you're using codecommit make sure git is configured to use your aws credentials:
git config --global credential.helper '!aws codecommit credential-helper $@' git config --global credential.UseHttpPath true
-
If you're using cloud9 make sure git is configured with your identity:
git config --global user.email "[email protected]" git config --global user.name "Your Name"
Otherwise it will appear the cloud9 instance is making commits.
-
install jq ( a json parser)
sudo yum install jq -y
-
Here's how to get the http clone url of a codecommit repo, also available in console:
aws codecommit get-repository --repository-name my-app | jq -r .repositoryMetadata.cloneUrlHttp
-
here's how to set remote to existing repo:
git remote add origin "https://git-codecommit.us-west-2.amazonaws.com/v1/repos/my-app"