我有一个CodeCommit存储库,我正尝试从Windows 7的命令行连接到该存储库。
我的意图是使用aws configure / aws凭证帮助器方法,因为在这种情况下,我更喜欢使用它来代替用户名/密码。
尝试任何git操作时,我得到:
aws codecommit credential-helper $@ get: aws: command not found
然后我便可以使用用户名和密码,但这使使用aws configure设置访问密钥的意义无效。
.gitconfig文件的凭据部分如下所示:
[credential]
helper = !aws codecommit credential-helper $@
UseHttpPath = true
看来git无法访问aws.cmd,但是它的完整路径在系统和用户路径环境设置上。
有什么想法吗?
答案 0 :(得分:6)
似乎Windows的AWS CLI的最新更新可能删除了某些内容。
您可以尝试这种方法吗?
[credential]
helper = !'C:\\Program Files\\Amazon\\AWSCLI\\bin\\aws.cmd' codecommit credential-helper $@
UseHttpPath = true