[英]AWS Codecommit - fatal: unable to access : The requested URL returned error: 403
[英]AWS Codecommit Git Clone error : fatal: unable to find remote helper for 'codecommit'
我正在尝试从我们的私有代码提交中克隆一个存储库,我有必要的访问权限,但是每当我尝试在本地克隆时,我都会收到错误消息:
git clone codecommit::us-east-1://my-repo-name
fatal: unable to find remote helper for 'codecommit'
我之前遇到过远程助手错误,但对于 https 可以通过 ssh 键解决,但这是我第一次看到这个。
我找到了解决方案。 安装 git-remote-codecommit 时必须有版本 3 或更高版本的 python
pip install git-remote-codecommit
由于某种原因,安装 python 2.7 时无法正确安装。
❯ git clone codecommit::us-east-1://my-repo-name
Cloning into 'my-repo-name'...
remote: Counting objects: 171562, done.
remote: processing
Receiving objects: 98% (118068/171562), 56.20 MiB | 3.09 MiB/s
之后它完成并正常工作。
我在 macOS 和 venv 上遇到了同样的问题,明确的 python 3 解决了它。
python3 -m venv ~/Documents/venv
source ~/Documents/venv/bin/activate
一旦 venv 激活安装 git-remote-codecommit 并克隆你的存储库
pip install git-remote-codecommit
git clone codecommit::us-east-1://my-repo-name
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.