Search code examples
gitamazon-web-servicesaws-codecommit

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.


Solution

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