fatal: repository does not exist(亲测有效)

这篇具有很好参考价值的文章主要介绍了fatal: repository does not exist(亲测有效)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

fatal: repository does not exist(亲测有效)

记录一下今天遇到的bug
场景是这样的:不知道什么原因,我用git执行clone的时候报错:repository does not exist,几乎把所有有关的博客都看了,都没解决,然后我一个哥们儿给我来了条命令,你猜怎么着?可以了!



解决方案

比如你要克隆的项目是https://github.com/apache/rocketmq-spring.git

那你就写成:

git clone git@github.com:apache/rocketmq-spring.git

区别就是git@github.com: 和 https://github.com/

gitee同理:git clone git@gitee.com:xxx

终于解决了!呜呜呜~

文章简短,希望对大家有帮助!文章来源地址https://www.toymoban.com/news/detail-535568.html

到了这里,关于fatal: repository does not exist(亲测有效)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • kubernetes部署应用时从harbor拉取镜像失败:repository does not exist or may require ‘docker login‘

    问题描述: kubernetes部署应用时,pod启动失败,通过kubectl describe pod查看失败原因类似下面的错误: Failed to pull image \\\"xxxx/oneapi-2/authtenantserver:15\\\": rpc error: code = Unknown desc = Error response from daemon: pull access denied for xxxx/oneapi-2/authtenantserver, repository does not exist or may require \\\'docker login\\\'

    2024年02月16日
    浏览(42)
  • pull access denied for web, repository does not exist or may require ‘docker login’: denied: request

    #Error response from daemon: pull access denied for web, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied. 创建容器时出现这个错误的原因是,创建容器时的版本号与拉取镜像时设置的版本号不一致

    2024年02月15日
    浏览(31)
  • Docker登陆遇到Error response from daemon: pull access denied for test-image, repository does not exist··

      错误信息:Error response from daemon: pull access denied for test-image, repository does not exist or may require \\\'docker login\\\': denied: requested access to the resource is denied. 解决方法:打开docker desktop,再运行docker login即可

    2024年02月07日
    浏览(39)
  • github 无语的问题,Host does not existfatal: Could not read from remote repository.

    Unable to open connection: Host does not existfatal: Could not read from remote repository. image.png image.png image.png Please make sure you have the correct access rights and the repository exists. 如果github desktop和git pull 和git clone全部都出问题了,那问题出在路由器,或者dns上了, 在cmd中ping不同,不过是设置cmd代理或

    2024年02月09日
    浏览(33)
  • git 解决 “fatal: Could not read from remote repository.“

    现象 在使用Git将本地仓库推送到远程仓库的时候,发生了如下错误:“fatal: Could not read from remote repository.”   原因 出现这错误一般是以下两种原因: 客户端与服务端未生成 ssh key 客户端与服务端的ssh key不匹配 为解决以上问题,我们需要重新生成一次ssh key ,并重新配置一

    2024年02月09日
    浏览(32)
  • 【yarn】 ‘husky install‘ fails if ‘.git‘ directory does not exists解决方法

    环境:win10 + yarn 1.22.19 问题:在使用yarn安装前端依赖时,yarn install 出现错误: .git can’t be found (see https://git.io/Jc3F9) error Command failed with exit code 1. 截图 根据设计,husky安装必须在与 .git 相同的目录中运行,但可以在准备脚本期间更改目录并传递子目录 打开web目录下的 package.

    2024年02月16日
    浏览(36)
  • fatal: not a git repository (or any of the parent directories): .git

    小编遇到这样一个问题,当git clone 后,进行分支切换时,报错fatal: not a git repository (or any of the parent directories): .git 而且出现了分支无法查询到的情况下 解决方法:进去.git文件夹 再打开git终端, 如果直接在此处进行分支切换,会提示报错   输一下git branch -a 再回退到上一级

    2024年02月12日
    浏览(40)
  • git clone出现fatal: Could not read from remote repository解决办法

    在git clone一个项目时出现如下报错: (第一个选项,问你是否继续连接?输入yes然后回车) 通过报错信息可以看出,这是因为Github上没有本机的公钥导致的。 其中双引号中填自己Github注册账号用的邮箱地址。 点击回车,看到提示 说明:前三个冒号分别让你输入保存公钥的

    2023年04月15日
    浏览(71)
  • 解决fatal: not a git repository (or any of the parent directories): .git问题

    在现代软件开发中,版本控制系统扮演着至关重要的角色,Git作为其中最流行和强大的工具之一,为我们提供了高效的代码管理和团队协作能力。然而,在使用Git的过程中,难免会遇到各种问题。其中,\\\"fatal: not a git repository (or any of the parent directories): .git\\\"是一个常见的错误,

    2024年02月08日
    浏览(37)
  • 解决git提示fatal: not a git repository (or any of the parent directories): .git

    1、创建分支时提示:not a git repository E:myprojectgit checkout -b zhenzhu fatal: not a git repository (or any of the parent directories): .git 2、怎么办? git init--》git status--》git checkout -b test20230217--》成功 3、为什么? 一般是没有初始化git本地版本管理仓库,使用init命令行初始化,再status查看状态

    2024年02月03日
    浏览(40)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包