git - 无法将 SourceTree 连接到 AWS CodeCommit

标签 git macos amazon-web-services atlassian-sourcetree aws-codecommit

我正在使用 Atlassian 的 SourceTree 在 Mac OS 上使用 git,并选择 AWS CodeCommit 作为远程托管服务器。

按照这些 steps对于 AWS 和我的本地存储库之间的 HTTPS 连接,

这是我的 git config --global --edit 的样子:

enter image description here

然后尝试将创建的空存储库从 AWS 克隆到 SourceTree: enter image description here

然后我打印出错误:

abort: HTTP Error 403: Forbidden aws --profile default codecommit credential-helper $@ get: aws: command not found fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/my-git-repo/': The requested URL returned error: 403

更新

尝试了@Steffen Opel 提供的答案,得到的答案更像:

enter image description here

我错过了什么吗?

最佳答案

我刚在这里找到这个答案 ( https://geekprotem.com/2015/07/10/aws-codecommit-with-sourcetree/ )

在亚马逊网站上完成 AWS CLI 的设置步骤后,最后一步是在 SourceTree 中编辑我存储库的配置文件以包括以下内容:

[credential]
helper = /usr/local/bin/aws codecommit credential-helper $@
UseHttpPath = true

关于git - 无法将 SourceTree 连接到 AWS CodeCommit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33009036/

相关文章:

git - 列出 Git 存储库中曾经存在的所有文件

Git命令查找哪些分支被 merge 到当前分支以及何时

c++ - 在 Mac OSX 中模拟 ioquake3 的按键事件

git - Bamboo - 构建我的 pull 请求

android - 如何将项目恢复到android studio中的先前提交

macos - OSX 音频 : use Garage Band Plug-ins in my own app

macos - 全屏时禁用鼠标悬停时弹出的底座

amazon-web-services - 使用不同的端口在一台主机上基于相同任务定义运行多个ECS任务

amazon-web-services - 添加的 SSL 不适用于使用 ACM 的 AWS 负载均衡器

ruby-on-rails - 我可以使用 Amazon Elastic Transcoder 仅创建缩略图吗?