My local laptop is a Mac.
The ssh key is configured properly. This is the content of ~/.ssh/config
Host barthea
Hostname git-codecommit.us-east
The following solution worked for a handful of devs that use Git Bash on Windows 10.
If you select Windows as your operating system on the "Connect to your repository" tab, the commands are formatted like this:
git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true
However, if you use Git Bash, select the "Linux, MacOS, or Unix" option instead. Note the single quote instead of double quote on the first line.
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true
Best of luck.
Referred: https://forums.aws.amazon.com/thread.jspa?threadID=198356 Posted by: mwhardesty