Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 812
gigz Avatar asked Jun 12 '20 03:06

gigz


2 Answers

I found the solution for this. you have to have a version 3 or above version of python when you install git-remote-codecommit

pip install git-remote-codecommit

for some reason, it does not install correctly when python 2.7 is installed.

❯ 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.

like image 80
gigz Avatar answered Oct 13 '22 02:10

gigz


I had the same issue on macOS and venv with clear python 3 resolved it.

python3 -m venv ~/Documents/venv
source ~/Documents/venv/bin/activate

Once venv activated install git-remote-codecommit and clone your repository

pip install git-remote-codecommit
git clone codecommit::us-east-1://my-repo-name
like image 22
KaterynaB Avatar answered Oct 13 '22 02:10

KaterynaB