2

I have enabled SSO for my organization and created a user. The user has admin rights to a sub account and is able to clone a repo via terminal. The problem is when I am trying to use GitHub Desktop to clone (or do anything) it asks for a username and password which I have no idea what they are.

Doesn't the GitHub Dekstop use the same git commands under the hood and therefore the aws credential helper for git?

I'd also like to know if there is a better way to manage which profile to use with git other than running git config --global credential.helper '!aws2 --profile my-profile codecommit credential-helper $@' every time I want to deal with a repo from different account.

4

2 回答 2

3

在 IAM 中,单击用户(在左侧栏上)-> 查找并单击您的用户-> 安全凭证选项卡-> 向下滚动到“AWS CodeCommit 的 HTTPS Git 凭证”-> 在操作下拉列表中,您可以重置密码。

此外,在该操作下拉列表下方,您会看到列出的用户名。

于 2020-08-24T14:24:03.337 回答
0

如果我们可以通过 IAM 获得 AWS codecommit 的 https 凭证。我们可以将它保存在 github 桌面并访问存储库

但如果通过 AWS SSO 配置文件访问 Codecommit,则唯一的选择是设置 git config。即使在设置配置文件和凭证助手后,我也无法从 github 桌面访问 codecommit

于 2021-05-27T12:37:11.100 回答