繁体   English   中英

带有 git-remote-codecommit 的 AWS CodeCommit

[英]AWS CodeCommit with git-remote-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'

请帮忙..

需要在终端运行这个命令来解决这个问题pip3 install git-remote-codecommitpip install git-remote-codecommit

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

我先修好了

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

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

这为我解决了问题。

其他解决方案对我不起作用。 我尝试遵循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但它不起作用。

什么最终工作brew install git-remote-codecommit :)

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

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

当我使用带有 --user 标志的 pip 安装 git-remote-codecommit 时,我遇到了同样的问题,该标志将软件包安装在主目录中。

pip install git-remote-codecommit --user

我通过将 Python 的脚本路径添加到 PATH 环境变量来解决这个问题。

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

我也面临这个问题,但它在强制安装git-remote-codecommit 后工作

pip install git-remote-codecommit --force

此处也给出了相同的解决方案。

https://www.miraclewebsoft.com/remote-codecommit-is-not-a-git-command-see-git-help/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM