0

我正在添加这样的远程存储库

git remote add pythonic https://github.com/sanfx/pythonic.git

但我得到这个错误说

致命:https ://github.com/sanfx/pythonic.git/info/refs not found:你在服务器上运行了 git update-server-info 吗?

以前我确实git push -f python3_ver2添加了一个远程分支,即使我在 github.com 上没有它。

添加远程分支时我缺少什么?

4

1 回答 1

1

该错误仅意味着 Git 找不到您尝试添加的存储库。这可能是因为它根本不存在于 GitHub 上,也可能是因为它是您无权访问的私有存储库。

如果您访问https://github.com/sanfx/pythonic,您可以看到 GitHub 正在为存储库返回 404。

因此,请仔细检查存储库名称是否正确以及您是否拥有必要的访问权限。

于 2013-03-09T18:29:26.343 回答