AWS CodeCommit - fatal: repository 'https://git-codecommit.us-east-1..' not found

ujjwal garg picture ujjwal garg · Jun 1, 2018 · Viewed 11.8k times · Source

I have an AWS account. I created a repository in us-east-1 region. When I try to access it from my Mac's terminal I get an error fatal: repository 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/demo/' not found. I was able to access this repository using SourceTree GIT client.

I create another repository in California region and I was able to access that repository from the terminal itself.

Why my Mac's terminal can't find repositories in a particular AWS region?

Answer

Michael Behrens picture Michael Behrens · Oct 9, 2019

I followed the link that both VonC and Uzair mentioned and I was able to get to the CLI git command to work after just entering:

git config --global credential.UseHttpPath true

Thanks VonC. PS: Make sure you have a current version of git installed. CodeCommit supports Git versions 1.7.9 and later.