AWS CodeCommit 与 git-remote-codecommit

una*_*men 12 amazon-web-services git-remote aws-codecommit

我使用 Windows 并尝试使用 git-remote-codecommit。

使用 git-remote-codecommit HTTPS 连接到 AWS CodeCommit 的步骤。

https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html

获取时,此错误显示:

git clone codecommit://MyRepositoryName

git: 'remote-codecommit' is not a git command. See 'git --help'
Run Code Online (Sandbox Code Playgroud)

请帮忙..

Cyb*_*Mew 16

其他解决方案对我不起作用。我尝试按照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%20命令,-问题%3A%20当%20you但它不起作用。

最终的结果是brew install git-remote-codecommit:)

$ which git-remote-codecommit
/opt/homebrew/bin/git-remote-codecommit
Run Code Online (Sandbox Code Playgroud)

如果这很重要的话,我正在使用 M1 Big Sur。


hra*_*aud 8

我有类似的问题。事实证明,git-remote-codecommit 扩展以某种方式安装但损坏了。

我首先修复了它

  1. 卸载: pip3 uninstall git-remote-codecommit
  2. 重新安装:pip3 install git-remote-codecommit

安装将检查 Python3 是否在您的 $PATH 中,如果没有,您需要添加它。

这解决了我的问题。