【发布时间】:2015-06-15 23:57:56
【问题描述】:
我在 github 上有一个私人仓库。它的位置已更改。
我尝试更换遥控器,但无法再推送。
ls-remote https://github.com/xxxxx/xxxxx.git
给我这个
远程:未找到存储库。
致命:未找到存储库“https://github.com/xxxxx/xxxxx.git/”
- 我检查了拼写,它是正确的。
- 我可以在浏览器中打开网址
- 我对 repo 有足够的权利。
- 我可以通过 https 克隆所有其他 repo
- 我删除了原点
git 删除原点https://github.com/xxxx/xxxxx.git - 用
重新添加了它 git 添加原点https://github.com/xxxxx/xxxxx.git - 我做了一个
git remote set-url 来源https://github.com/xxxxx/xxxxx.git
我将 git 从 1.9.5 升级到 2.2.1 看看是否有帮助
升级后,我在存储库上做了一个新的 ls-remote,它要求接受一个新证书。我做到了。
这并没有解决问题
在 SSH URL url 上执行 ls-remote 虽然效果很好 所以我通过添加 SSH URL 作为远程源解决了这个问题
为什么 https:// 网址是 Not found 让我很困惑。 有人知道吗?
【问题讨论】:
标签: git repository ls-remote