403 error when try to pull code from aws repository

Viewed 82

when try to pull from repository to local i am getting below error, but in other computer able pull with my AWS credentials, but here it is not asking for aws username and password any solution?

fatal: unable to access 'repository name': The requested URL returned error: 403

1 Answers

Then double-check the output of

git config --global credential.helper

For HTTPS URL, it is likely to cache your old credentials.

If, for instance, the credential helper is manager-core, try

printf "host=remoteHost\nprotocol=http"|git credential-manager-core get

Replace RemoteHost by the AWS server name.

But if, as commented, the help is an AWS command, then simply do a aws codecommit credential-helper get to confirm the wrong credentials are cached.

If so, aws codecommit credential-helper erase.

Related