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?
My issue was that I used the clone https url widget provided by github. That URL doesn't work for private repositories as you need to add a username to the front of it.
Example: a private repo owned by john and named widget with collaborator sam the correct url would be:
https://sam@github.com/john/widget.git
The github provided url:
https://github.com/john/widget.git
The error message leaves much to be desired.
I met up with the same problem.
How I solved this problem is:
I use git bash to create a new repo, when I typed "git push origin master" It reported
"fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: did you run git update-server-info on the server?"
Finally, I found there was not a repo on the github at all.
You'd better create a new repo first on github.
Maybe this experience can help somebody.
In my case I was using the wrong protocol in the repository URL (http instead of https)
In my case, I was trying to clone a private repository in our group Github account to me laptop:
I found two ways can solve this.
(1) Use http instead of https. It asks me the name and password of our group Github account. After I entered the information, I can clone it.
(2) Add my Github account to the collaborators of the private repository in our group Github account, as pointed by Monkey King's answer above.
This error could also happen if the repository you are attempting to reach was deleted.
In my case I had old version of the git. Upgrade to latest version fixed this issue.