简体   繁体   English

带有 git-remote-codecommit 的 AWS CodeCommit

[英]AWS CodeCommit with git-remote-codecommit

Im using windows and im trying to use git-remote-codecommit.我正在使用 Windows 并且我正在尝试使用 git-remote-codecommit。

steps for HTTPS Connections to AWS CodeCommit with git-remote-codecommit.使用 git-remote-codecommit 将 HTTPS 连接到 AWS CodeCommit 的步骤。

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

While fetching , this error shows:获取时,此错误显示:

git clone codecommit://MyRepositoryName

git: 'remote-codecommit' is not a git command. See 'git --help'

please help..请帮忙..

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

I had a similar issue.我有一个类似的问题。 It turns out that somehow the git-remote-codecommit extension was somehow installed but broken.事实证明,以某种方式安装了 git-remote-codecommit 扩展但已损坏。

I fixed it by first我先修好了

  1. uninstalling: pip3 uninstall git-remote-codecommit卸载:pip3 卸载 git-remote-codecommit
  2. reinstalling: pip3 install git-remote-codecommit重新安装: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.安装将检查 Python3 是否在您的 $PATH 中,否则您需要添加它。

This fixed the problem for me.这为我解决了问题。

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.我尝试遵循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但它不起作用。

What ended up working as doing a brew install git-remote-codecommit :)什么最终工作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.如果这很重要,我正在使用 M1 Big Sur。

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

pip install git-remote-codecommit --user

I fixed the problem by adding Python's Script path to the PATH environment variable.我通过将 Python 的脚本路径添加到 PATH 环境变量来解决这个问题。

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

I was also facing this issue but it work after Force install git-remote-codecommit我也面临这个问题,但它在强制安装git-remote-codecommit 后工作

pip install git-remote-codecommit --force

The same solution is given here as well.此处也给出了相同的解决方案。

https://www.miraclewebsoft.com/remote-codecommit-is-not-a-git-command-see-git-help/ 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