gig*_*igz 13 git amazon-web-services aws-codecommit
我正在尝试从我们的私有代码提交中克隆一个存储库,我有必要的访问权限,但是每当我尝试在本地克隆时,我都会收到错误消息:
git clone codecommit::us-east-1://my-repo-name
fatal: unable to find remote helper for 'codecommit'
Run Code Online (Sandbox Code Playgroud)
我之前遇到过远程助手错误,但对于可以通过 ssh 密钥解决的 https,但这是我第一次看到这个错误。
我找到了解决方案。当你安装 git-remote-codecommit 时,你必须有一个版本 3 或更高版本的 python
pip install git-remote-codecommit
Run Code Online (Sandbox Code Playgroud)
出于某种原因,安装 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
Run Code Online (Sandbox Code Playgroud)
它完成并随后正常工作。
小智 5
我在 macOS 和 venv 上遇到了同样的问题,使用 clear python 3 解决了它。
python3 -m venv ~/Documents/venv
source ~/Documents/venv/bin/activate
Run Code Online (Sandbox Code Playgroud)
一旦 venv 激活安装 git-remote-codecommit 并克隆您的存储库
pip install git-remote-codecommit
git clone codecommit::us-east-1://my-repo-name
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5006 次 |
| 最近记录: |