2016-08-27 32 views
1

工作如下https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html后,我得到试图克隆如果出现以下错误:AWS CodeCommit不使用HTTPS上OSX

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

这是什么在我的.gitconfig:

[credential] 
     helper = aws configure codecommit credential-helper [email protected] 
     UseHttpPath = true 

我在OSX El Capitan。

+0

将帮助程序更改为helper =!aws codecommit credential-helper $ @并查看您是否正在获取该错误? – error2007s

+0

这是问题所在。任何想法为什么它不正确地产生.gitconfig? – Instabrite

+0

不知道在设置它时运行的命令中是否有错误。如果解决了您的问题,请将我的答案标记为正确。 – error2007s

回答

1

问题出在你的gitconfig中。将其更改为下面,它将起作用。

[credential] 
     helper = !aws codecommit credential-helper [email protected] 
     UseHttpPath = true 
相关问题