首页 > 解决方案 > 当链接仍然相同时,如何解释“存储库已移动”?

问题描述

我在 github 上创建了一个私有存储库,经过一些我没有注意到任何异常的推送之后,我开始收到以下消息git push

$ git push
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 4 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 46.54 KiB | 117.00 KiB/s, done.
Total 14 (delta 8), reused 0 (delta 0)
remote: Resolving deltas: 100% (8/8), completed with 4 local objects.
remote: This repository moved. Please use the new location:
remote:   https://github.com/lucidBrot/cevi-versand.git
To https://github.com/lucidbrot/cevi-versand.git
   d4cfadf..ae2909b  master -> master

$ git remote -v
origin  https://github.com/lucidbrot/cevi-versand.git (fetch)
origin  https://github.com/lucidbrot/cevi-versand.git (push)

Git 声称存储库已移动。但它建议的“新位置”与我目前使用的网址相同。
这发生在我访问此存储库的两台机器上。我还没有尝试用一个空的 repo 进行复制。

为什么我会收到此消息,我该如何摆脱它?

我正在通过 cygwin 使用 git:

$ git --version
git version 2.21.0

标签: git

解决方案


查看消息,我可以看到:

从:

https://github.com/lucid B rot/cevi-versand.git

至:

https://github.com/lucid b rot/cevi-versand.git

看起来服务器区分大小写。可能没什么大不了的,但如果软件只是坚持比较字符串,这可以解释这个问题。


推荐阅读