AWS CodeCommit在OSX上不支持HTTPS



在执行https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html操作后,我在尝试克隆时得到以下错误:

git: 'credential-aws' is not a git command. See 'git --help'.

这是我的。gitconfig中的内容:

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

我在OSX El Capitan上

问题在您的gitconfig中。把它改成下面就行了

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

最新更新