【问题标题】:AWS CodeCommit with git-remote-codecommitAWS CodeCommit 与 git-remote-codecommit
【发布时间】:2020-12-22 16:53:07
【问题描述】:

我正在使用 windows,我正在尝试使用 git-remote-codecommit。

使用 git-remote-codecommit 与 AWS CodeCommit 建立 HTTPS 连接的步骤。

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'

请帮忙..

【问题讨论】:

  • 这个页面对您的问题有帮助吗? docs.aws.amazon.com/codecommit/latest/userguide/…
  • 我有同样的问题,通过 pip3 卸载并重新安装,默认情况下 python3 已经在路径中,但它仍然失败。没有意义。我在 M1 上使用 Big Sur。

标签: amazon-web-services git-remote aws-codecommit


【解决方案1】:

我遇到了类似的问题。事实证明,不知何故 git-remote-codecommit 扩展被安装但损坏了。

我先修好了

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

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

这解决了我的问题。

【讨论】:

    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

      其他解决方案对我不起作用。我尝试关注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。

      【讨论】:

      • 这对我有用!
      【解决方案4】:

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

      pip install git-remote-codecommit --user

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

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

      【讨论】:

        【解决方案5】:

        我也遇到了这个问题,但是在强制安装后它可以工作 git-remote-codecommit

        pip install git-remote-codecommit --force
        

        这里也给出了相同的解决方案。

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

        【讨论】:

          猜你喜欢
          • 2022-07-22
          • 2022-12-21
          • 2019-08-18
          • 1970-01-01
          • 2022-12-28
          • 2017-01-23
          • 2023-02-02
          • 2020-12-31
          • 2022-09-27
          相关资源
          最近更新 更多