Skip to content

Instantly share code, notes, and snippets.

@ljayz
Last active March 24, 2024 18:33
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save ljayz/9fa6721c13f2c2d6a8f772a1e4ef1a37 to your computer and use it in GitHub Desktop.
Save ljayz/9fa6721c13f2c2d6a8f772a1e4ef1a37 to your computer and use it in GitHub Desktop.
Fix aws codecommit unable to access repository (The requested URL returned error: 403) in windows
this was tested using windows10 pro
when cloning a git this error was produced
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/RepositoryName': The requested URL returned error: 403
to fix add the following git configuration
git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true
check if git has system credential.helper by typing
git config --system -l
if it has remove it by typing
git config --system --unset credential.helper
@Pinky057
Copy link

git config --global credential.UseHttpPath true worked for me thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment