aws / git-remote-codecommit

An implementation of Git Remote Helper that makes it easier to interact with AWS CodeCommit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remote-codecommit is not a git command.

priyankaVice opened this issue · comments

While running the git pull or git clone, it says remote-codecommit is not a git command. help would be appreciable.

I had the same issue. Was able to resolve it by installed awscli package and checking the Python scripts folder was in my path statement.

> pip install --user awscli
> SET PATH=C:\Users\<username>\AppData\Roaming\Python\Python37\Scripts;%PATH%
> aws codecommit help

While running the git pull or git clone, it says remote-codecommit is not a git command. help would be appreciable.

I am having this issue on Windows, I have tried the suggested solution above but still no luck.

Have you found a solution to this issue?

@ErickMwazonga @etelenchenko Is your Python version 3.8.x or 3.9.x ?? This was my issue. Although not getting any errors during the pip install, it does not put the scripts into the scripts folder. Install 3.7.x and have those paths at the top of your path environment order and rerun the pip install command, and it should install the scripts into the Python37\Scripts folder.

First, it is worth understanding how custom git commands work since support for codecommit:// repositories is added by using a custom command.

Anyone can add any custom commands to git. For example if you wanted to add: git new-command, you would need to create an executable called git-new-command and it needs to be on the PATH.

So when you get the error remote-codecommit is not a git command, that means that the executable 'git-remote-codecommit' is not on the PATH.

A simple way to test this is to run: git-remote-codecommit, it probably doesn't work if you were getting that error.

For me personally I ran into this error by making the mistake of running:
pip install git-remote-codecommit -> installs to ~/.local/bin (not on my PATH)
instead of:
sudo pip install git-remote-codecommit -> install to /usr/local/bin (already on my PATH)

Your personal error may not be exactly the same but is very likely due to the command not being on the PATH.

This worked, Thanks a lot.