"你在Github存储库上运行了git update-server-info"错误吗?

Pau*_*aul 130 git github github-for-mac

我正在使用他们网站上的github Gui管理我的回购,我收到以下错误:

fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: 
did you run git update-server-info on the server?
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

Jav*_*ini 77

您可能已更改了存储库名称

在本地存储库中编辑文件:

.git/config
Run Code Online (Sandbox Code Playgroud)

然后检查:

[remote "origin"]
   url = 
Run Code Online (Sandbox Code Playgroud)

URL与您的远程存储库匹配

  • 使用较新版本的git,您可以从命令行执行此操作:git remote set-url origin git@github.com:repoaccountname/repo-name.git (5认同)

nav*_*ins 44

你上创建一个新的存储库http://github.comsame name

如果没有,那就去吧!并确保每个字母都正确区分大小写.


amo*_*olk 27

在我的情况下,我的github帐户没有对repo的权限.添加了github帐户作为repo的协作者并修复了它.


小智 14

此错误主要由错误的URL引起,请检查:

  • http或https
  • 网址名称
  • 用户名@ git_url
  • 错误的git名称


Fau*_*aux 9

它看起来像是一个私有(或删除)的存储库; 如果您在登录时访问存储库页面,它将为您提供真实的URL,可能是https://TeaCodie@github.com/TeaCodie/TeaCodie-Website.git,即指定了用户名?

  • 请解释它是什么 (16认同)

ale*_*nce 7

还要确保您输入的仓库正确套装(区分大小写).


Sen*_*ful 6

我在使用github存储库时遇到了同样的问题,并在使用OS X Keychain Credential帮助程序时通过https连接到它.

我的问题是我在OS X的Keychain中存储了错误的凭据(我使用的是我用来注册github.com的电子邮件地址,而不是它提供给你的[username] @ github.com地址).我删除了钥匙串中的旧帐户,只留下了@ github.com,解决了问题.

不确定它是否相关,但是当我检查user.email本地配置时:

git config -l
Run Code Online (Sandbox Code Playgroud)

它也显示了错误的电子邮件地址,因此我更新了本地git user.email以使用正确的帐户:

git config user.email <username>@github.com
Run Code Online (Sandbox Code Playgroud)


Joh*_*rge 6

我的问题是我使用了github提供的克隆https url小部件.该URL不适用于私有存储库,因为您需要在其前面添加用户名.

示例:john拥有的私有仓库和带有协作者山姆的命名小部件正确的URL将是:

HTTPS://sam@github.com/john/widget.git

github提供了url:

https://github.com/john/widget.git

错误消息还有很多不足之处.


Mar*_*ark 5

确保您的用户帐户作为协作者添加到存储库中.

设置 - >协作者