running git clone against AWS CodeCommits gets me a 403 error

后端 未结 13 720
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 14:56

My local laptop is a Mac.

  1. The ssh key is configured properly. This is the content of ~/.ssh/config

    Host barthea Hostname git-codecommit.us-east

13条回答
  •  隐瞒了意图╮
    2021-01-31 15:36

    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

提交回复
热议问题