问题描述
我正在尝试将我的AWS代码提交设置到本地系统。
我正在尝试克隆存储库
git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/lambda-pipeline-repo
当我尝试执行此操作时,会显示此窗口,在其中输入IAM用户凭据。
此后不久,我得到了
Cloning into 'lambda-pipeline-repo'...
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/lambda-pipeline-repo/': The requested URL returned error: 403
我想知道自己在做错什么。
我也在此链接中尝试过
https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html
有人可以帮我吗?
解决方法
在此处查看AWS文档,以获取Windows上的修复程序:https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-ch.html 可能是由于凭据助手由于某种原因未正确连接到凭据。
(我在Mac上也有同样的问题。一旦按照文档中的说明恢复了AWS凭证帮助器和osxkeychain凭证帮助器,一切就可以正常工作了。)
看看是否有帮助。 -干杯