【GIT】Git clone https://xxx.git 报错仓库找不到,ssh却可以。

这篇具有很好参考价值的文章主要介绍了【GIT】Git clone https://xxx.git 报错仓库找不到,ssh却可以。。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

环境

MacBook Pro:13.0 (22A380),Intel。
Python:3.10.9

序言

最近在Mac电脑中按照stable diffusion webUI 时,总是报:

MacBook-Pro:openai yutao$ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
正克隆到 'stable-diffusion-webui'...
remote: bye :(
致命错误:仓库 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/' 未找到

或者

正克隆到 '/Users/yutao/openai/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'...
remote: bye :(
致命错误:仓库 'https://github.com/Stability-AI/stablediffusion.git/' 未找到

类似这样的错误。

经过各种尝试后,发现,我的MacBook Pro,使用git clone git@github.com:xxx.git地址时,可以下载下来,
但是当使用git clone https://xxx.git时,就会提示,仓库找不到。

remote: bye :(
致命错误:仓库 'https://github.com/xxx.git/' 未找到

解决办法

网上有种情况,说是也因为过期的钥匙串导致的。
但是我搜索MacBook Pro 电脑发现,我的钥匙串里面压根就没有github的密码配置。

我的办法如下:

git config --global url."git@github.com:".insteadOf "https://github.com/"

也就是通过配置,将https://github.com/替换为git@github.com:

假设我们想删除的话,

git config --unset key名称
# 例如
git config --unset url.git@github.com:.insteadof

参考地址:

Git clone using https is not working, but works with help of ssh

git报错remote: Repository not found的一种可能文章来源地址https://www.toymoban.com/news/detail-767084.html

到了这里,关于【GIT】Git clone https://xxx.git 报错仓库找不到,ssh却可以。的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

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

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

相关文章

  • 如何解决git clone http/https仓库失败(403错误)

    本来不打算写这篇文章,但是后来又遇到这个问题忘了之前是怎么解决的了。 一般情况下,个人使用 GitHub 等平台时是使用 SSH 协议的,这样不光方便管理可访问用户,也保证了安全性。但是 GitHub 上仓库的 SSH 地址是要登陆才能看到,未登录情况下只能看到 HTTPS 地址,所以很

    2024年02月03日
    浏览(38)
  • 【已解决】git clone 失效,fatal: unable to access ‘https://github.com/XXX.git/‘: Recv failure: C

    问题: $ git clone https://github.com/d2-projects/d2-admin.git Cloning into ‘d2-admin’… fatal: unable to access ‘https://github.com/d2-projects/d2-admin.git/’: Recv failure: Connection was reset 解决方案: 先刷新DNS win+R, cmd 输入: 删除全局的 HTTP 代理设置,让 Git 回到直接连接状态 git config 用于配置 Git 的各种

    2024年02月08日
    浏览(50)
  • git pull 报错 git warning: redirecting to https://xxx.xxx.xxxx/xxx/xxx.git/

    git pull 时报错: 出现这种错误,实际上是服务端的一种安全提醒,要消除这个错误只需要修改配置就可以了。解决办法:

    2024年02月16日
    浏览(35)
  • 解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

    今天想把一些项目的代码提交到git的时候,出现了‘https://gitee.com/XXX.git/‘: The requested returned error: 403 这个报错,然后我在网上找了些解决方法,最后是用这个方法解决的问题,原来我电脑的gitee之前不知道怎么配置的是上一家公司的gitee账号一直没有更改过来。 以下是更换

    2024年04月27日
    浏览(32)
  • git clone 报错fatal: could not create work tree dir ‘xxx’: Permission denied

    新的电脑进行环境配置,下载git,今天去GitHub拉取新的项目就出现上面的错误,进行一个记录。 当时我是执行命令git克隆出现以下报错截图    最开始我将错误截图进行搜索,错误原因大概是:“The error message you received, \\\"fatal: could not create work tree dir \\\'RoyalSecurity\\\': Permission de

    2024年02月07日
    浏览(52)
  • 使用Git clone失败 : ‘git clone xxx‘ 一直卡在Cloning in xxx

    使用 \\\'git clone xxx\\\' 一直卡在这个界面不动          在网上搜了很多教程,大多数都是如何加快 clone 的速度,都没能解决问题。最后把 Git 卸载了重新安装,就可以正常 clone 了。         应该是因为我的 Git 版本太老了,很久没有用了。。。换了最新版本立马起飞(所以

    2024年02月11日
    浏览(83)
  • 报错解决git clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8va

    在服务器上安装langchain+chatglm-6b的环境包requirements时遇到报错:  git clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8vazx/detectron2_09a41306c6a04abaa4ec763689775b94   fatal: unable to access \\\'https://github.com/facebookresearch/detectron2.git/\\\': Failed to connect to github.com port 443: Connection

    2024年02月04日
    浏览(31)
  • git clone报错 unable to access ‘xxx‘: Failed to connect to xxx port 80 after 21102 ms: Timed out

    首先查看配置信息,查看是否为当前用户,是否有代理 如果有代理,删除 再执行clone如果还不行 则cmd打开执行 telnet ip 端口(注意ip,端口中间没有任何符号) telnet打开方式:

    2024年02月05日
    浏览(40)
  • Git——git clone私有仓库

    在clone的时候,在https://后面先加上github-username:github-token,再@项目的链接即可把项目clone下来。 GitHub:加的是token;(Token设置:设置Token) Gitee:加的是password; example: kyrle 是我的用户名 设置密码不用反复输入 http ssh 设置ssh链接:github ssh密钥配置 如果ssh无反应则尝试:

    2024年02月11日
    浏览(50)
  • git clone使用https协议报错OpenSSL SSL_read: Connection was reset, errno 10054

    在使用git 下载github上的代码时, 一般有ssh协议和https协议两种。使用ssh协议可以成功clone代码, 但使用https协议时出错: 报错原因其实是证书错误问题。 解决方法也很简单, 设置正确的证书或者忽略证书。 忽略证书的解决方法比较简单。 如下设置即可忽略证书,这个设置

    2024年02月12日
    浏览(40)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包