当前位置: 首页 > news >正文

【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的一种可能

http://www.lryc.cn/news/175882.html

相关文章:

  • Vue系列(三)之 基础语法下篇【事件处理,表单综合案例,组件通信】
  • AI 编码助手 Codewhisperer 安装步骤和使用初体验
  • Python操作Elasticsearch
  • 面试打底稿② 专业技能的第二部分
  • java 对mybatis拦截Interceptor进行权限控制(条件修改),入参修改,返回修改
  • 鲲鹏+麒麟v10 sp1 打包tomcat
  • 大屏大概是怎么个开发法(前端)
  • 什么是Selenium?使用Selenium进行自动化测试!
  • 第一章:最新版零基础学习 PYTHON 教程(第十七节 - Python 表达式语句–Python返回语句)
  • 前端碎知识点
  • 【Leetcode Sheet】Weekly Practice 7
  • leetcode Top100(23)回文链表
  • WebGL绘制圆形的点
  • 《The Rise and Potential of Large Language Model Based Agents: A Survey》全文翻译
  • 在线地图获取城市路网数据
  • 8.2 Jmeter if控制器使用
  • 科技云报道:青云科技打出“AI算力牌”,抢跑“云+AI”新增市场
  • 学习路之PHP--lumen安装配置
  • 【C++】构造函数和析构函数第一部分(构造函数和析构函数的作用)--- 2023.9.25
  • CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解
  • 大数据学习-目录
  • 《动手学深度学习 Pytorch版》 7.5 批量规范化
  • Toaster - Android 吐司框架,专治 Toast 各种疑难杂症
  • 2023年9月26日,历史上的今天大事件早读
  • CListCtrl控件为只显示一列,持滚动显示其他,不用SetScrollFlags
  • spring博客实现分页查询
  • 代码阅读分析神器-Scitools Understand
  • 学霸吐血整理‼《2023 年 IC 验证岗面试真题解析》宝藏干货!
  • 稳定性、可靠性、可用性、灵活性、解耦性
  • docker搭建Redis三主三从