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'.
helper = aws configure codecommit credential-helper $@
UseHttpPath = true
The issue is in your gitconfig. Change it to below and it will work.
[credential] helper = !aws codecommit credential-helper $@ UseHttpPath = true