[英]AWS Codecommit Git Clone error : fatal: unable to find remote helper for 'codecommit'
I am trying to clone a repository from our private codecommit, I have necessary access, but whenever i try to clone locally, I am getting the error:我正在尝试从我们的私有代码提交中克隆一个存储库,我有必要的访问权限,但是每当我尝试在本地克隆时,我都会收到错误消息:
git clone codecommit::us-east-1://my-repo-name
fatal: unable to find remote helper for 'codecommit'
I encountered remote helper error before but for https which could be resolved by ssh keys, but this is the first time I have seen this.我之前遇到过远程助手错误,但对于 https 可以通过 ssh 键解决,但这是我第一次看到这个。
I found the solution for this.我找到了解决方案。 you have to have a version 3 or above version of python when you install git-remote-codecommit
安装 git-remote-codecommit 时必须有版本 3 或更高版本的 python
pip install git-remote-codecommit
for some reason, it does not install correctly when python 2.7 is installed.由于某种原因,安装 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
it completed and worked properly afterwards.之后它完成并正常工作。
I had the same issue on macOS and venv with clear python 3 resolved it.我在 macOS 和 venv 上遇到了同样的问题,明确的 python 3 解决了它。
python3 -m venv ~/Documents/venv
source ~/Documents/venv/bin/activate
Once venv activated install git-remote-codecommit and clone your repository一旦 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.