Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git AWS CodeCommit在OSX上不能与HTTPS一起工作_Git_Amazon Web Services_Aws Codecommit - Fatal编程技术网

Git AWS CodeCommit在OSX上不能与HTTPS一起工作

Git AWS CodeCommit在OSX上不能与HTTPS一起工作,git,amazon-web-services,aws-codecommit,Git,Amazon Web Services,Aws Codecommit,执行以下操作后,尝试克隆时出现以下错误: git: 'credential-aws' is not a git command. See 'git --help'. 这是my.gitconfig中的内容: [credential] helper = aws configure codecommit credential-helper $@ UseHttpPath = true 我在OSX El Capitan上。问题在您的gitconfig中。将其更改为下面,

执行以下操作后,尝试克隆时出现以下错误:

git: 'credential-aws' is not a git command. See 'git --help'.
这是my.gitconfig中的内容:

[credential]
        helper = aws configure codecommit credential-helper $@
        UseHttpPath = true

我在OSX El Capitan上。

问题在您的gitconfig中。将其更改为下面,它将工作

[credential]
        helper = !aws codecommit credential-helper $@
        UseHttpPath = true

将helper更改为helper=!aws codecommit credential helper$@并查看是否出现该错误?这就是问题所在。知道它为什么不正确地生成了.gitconfig吗?不知道您在设置它时运行的命令中一定有错误。如果这解决了你的问题,请将我的答案标记为正确。