git clone 提示:remote not found fatal repository "……" not found

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git clone 提示:remote not found fatal repository "……" not found相关的知识,希望对你有一定的参考价值。

参考技术A 操作git的时候报错如下:

致命伤害?:没找到'xxx.git'。

根本原因就是,repository地址被更改了;

举个例子,现在要更改repository名称:

由原来的“ https://xxx/old_directory.git ”改为现在的 “ https://username:password@xxx/xxx/new_directory.git ”

所以此时你本地执行git命令操作线上的仓库是没用的,通道都错了怎么走下去;所以我们必须修改本地git仓库指向的远程仓库地址

解决方案如下:

输入下面这行命令设置远程url为修改后的地址;

改了之后可以查看remote链接,命令如下

当然,发现这个错误的时候也可以用这个命令(git remote -v)确认一下,链接是否正确;不正确就执行替换remote的命令

以上是关于git clone 提示:remote not found fatal repository "……" not found的主要内容,如果未能解决你的问题,请参考以下文章

Jenkins报错Error cloning remote repo 'origin'

git克隆出错 github clone Permission denied (publickey) fatal Could not read from remote repo

git clone时,提示warning: remote HEAD refers to nonexistent ref, unable to checkout.

git call failed: [git clone Could not resolve host: git.openstack.org

git clone时报错 提示 early EOF、The remote end hung up unexpectedly 、 index-pack failed等错误信息

Git clone 提示“Could not resolve hostname”解决