AWS 代码提交 Git 克隆错误:致命:找不到"代码提交"的远程帮助程序



我正在尝试从我们的私有代码提交克隆存储库,我有必要的访问权限,但是每当我尝试在本地克隆时,我都会收到错误:

git clone codecommit::us-east-1://my-repo-name
fatal: unable to find remote helper for 'codecommit'

我之前遇到过远程助手错误,但对于可以通过 ssh 密钥解决的 https,但这是我第一次看到这种情况。

我找到了解决方案。 安装 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

相关内容

最新更新