“did you run git update-server-info” error on a Gi

2019-01-12 23:24发布

I'm using the github Gui from their website to manage my repos, and I'm getting the following error:

fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: 
did you run git update-server-info on the server?

How can I fix this?

19条回答
Luminary・发光体
2楼-- · 2019-01-12 23:42

probably you were trying to clone like this:

git clone https://github.com/TeaCodie/TeaCodie-Website.git

Then you got this error:

fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: did you run git update-server-info on the server?

Here is what worked for me:

git clone https://github.com/TeaCodie/TeaCodie-Website.git/.git

because the directory "info/refs" is in the .git directory.

查看更多
狗以群分
3楼-- · 2019-01-12 23:44

You might have changed your repository name

In your local repository edit the file:

.git/config

Then check:

[remote "origin"]
   url = 

that the URL matches your remote repository

查看更多
劳资没心,怎么记你
4楼-- · 2019-01-12 23:45

In my case my github account did not have permissions to the repo. Added the github account as a collaborator for the repo and that fixed it.

查看更多
够拽才男人
5楼-- · 2019-01-12 23:45

Also make sure the repo you've entered is cased correctly (it's case sensitive).

查看更多
一夜七次
6楼-- · 2019-01-12 23:46

It looks like that's a private (or deleted) repository; if you visit the repository page while logged it'll give you the real URL, which'll probably be https://TeaCodie@github.com/TeaCodie/TeaCodie-Website.git , i.e. with a username specified?

查看更多
forever°为你锁心
7楼-- · 2019-01-12 23:46

I got this issue when using GitStack. I looked into C:/GitStack/apache/logs/error.log and found that GitStack was looking for the repository in the wrong location although its settings said D:/Repositories (my custom location), GitStack looked for the repositories in its default location. So I simply went and save the settings again from GitStack admin page. It solved the problem.

查看更多
登录 后发表回答