AWS CodeCommit with git-remote-codecommit

Viewed 9369
6 Answers

The other solutions did not work for me. I tried following https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html#:~:text=a%20CodeCommit%20repository-,I%20see%20an%20error%3A%20git%3A%20%27remote-codecommit%27%20is%20not%20a%20git%20command,-Problem%3A%20When%20you but it did not work as well.

What ended up working as doing a brew install git-remote-codecommit :)

$ which git-remote-codecommit
/opt/homebrew/bin/git-remote-codecommit

I am using a M1 Big Sur if that matters.

I had a similar issue. It turns out that somehow the git-remote-codecommit extension was somehow installed but broken.

I fixed it by first

  1. uninstalling: pip3 uninstall git-remote-codecommit
  2. reinstalling: pip3 install git-remote-codecommit

The install will check to see if Python3 is in your $PATH if not you'll need to add it.

This fixed the problem for me.

Need to run this command in terminal to solve this problem pip3 install git-remote-codecommit or pip install git-remote-codecommit

i try to uninstall git-remote-codecommit and find the path that it's installed

C:\Users\user>pip3 uninstall git-remote-codecommit
Found existing installation: git-remote-codecommit 1.16
Uninstalling git-remote-codecommit-1.16:
  Would remove:
    c:\users\user\appdata\roaming\python\python39\scripts\git-remote-codecommit-script.py
    c:\users\user\appdata\roaming\python\python39\scripts\git-remote-codecommit.exe
    c:\users\user\appdata\roaming\python\python39\site-packages\git_remote_codecommit-1.16-py3.9.egg-info
    c:\users\user\appdata\roaming\python\python39\site-packages\git_remote_codecommit\*

when i add this path to environment variable then it works.

c:\users\user\appdata\roaming\python\python39\scripts\

I faced the same problem when I installed the git-remote-codecommit using pip with --user flag which installed the package in the home directory.

pip install git-remote-codecommit --user

I fixed the problem by adding Python's Script path to the PATH environment variable.

C:\Users\{HOME_DIR}\AppData\Roaming\Python\Python37\Scripts

Related