aws codecommit未提示凭据



在克隆AWS codecommit存储库时,我(错误地(放入了无效的codecommit凭据,现在是git克隆https://git-codecommit.us-east....给出443错误,并且没有提示输入用户名。

在一次尝试失败后,提示似乎已被禁用,请帮助我如何再次启用它。

我试过了:

git clone https://usenmae@git-codecommit.........

同样,但即使这样也不起作用

我使用设置用户名

git config --local user.name <myuser>

但即使这样也不起作用

将这些行放入~/.gitconfig并保存:

[credential "https://git-codecommit.*.amazonaws.com"]
helper = !aws codecommit credential-helper $@ 
UseHttpPath = true

然后关闭并打开一个新的命令行窗口(gitbash(,并确保您使用的URL如下:https://git-codecommit.*.aamazonaws.com,没有用户名和密码。您可以在此处阅读:https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-gc.html

如果不起作用,请尝试取消设置配置凭据,然后重试。这是我的工作:https://confluence.atlassian.com/bbkb/why-am-i-not-prompted-for-password-when-pushing-or-pulling-to-my-repositories-in-bitbucket-cloud-via-https-800293400.html:

git config --global --unset credential.helper

我猜您已经使用设置了https凭据的记忆

git config --global credential.helper store

您可以在~/.gitconfig中更改凭据。或者您可以使用unset帮助程序

git config --global credential.helper unset

或者,您可以在git克隆中显式地提供用户名和凭据:

git clone https://<git-user-from-iam>:<git-pass-from-iam>@git-codecommit.....

最新更新