Instabrite Instabrite - 3 months ago 31
Git Question

AWS CodeCommit does not work with HTTPS on OSX

After following https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html, I get the following error when trying to clone:

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


This is what is is in my .gitconfig:

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


I'm on OSX El Capitan.

Answer

The issue is in your gitconfig. Change it to below and it will work.

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