簡體   English   中英

AWS Codecommit Git 克隆錯誤:致命:無法找到“codecommit”的遠程幫助程序

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM