CodeCommit的配置相对简单,首先登陆到AWS Console界面,到CodeCommit出,点Create Repository,给个名字,即可完成Repository的创建。然后就是配置客户端连接,这个比较麻烦。
我选用的是HTTPS连接方式和Windows客户端,然后AWS给出连接步骤:
1. Install Git (1.7.9 or later supported) without the Git Credential Manager utility. If you don’t have Git installed, install it now.
https://git-scm.com/download/win
2. Install the AWS CLI.
http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html#awscli-install-windows-path
At the command line, type aws configure and configure the AWS CLI with your IAM user access key and secret key.
Attach an appropriate AWS CodeCommit managed policy to the IAM user. Learn more
Steps to clone your repository
At the command line, paste the following commands:
git config --global credential.helper "!aws codecommit credential-helper $@"