"did you run git update-server-info" error on a Github repository

107,990

Solution 1

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

Solution 2

Did you create a new repository on the http://github.com with the same name?

If not, do it! And make sure each letter is correct and case sensitive.

Solution 3

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.

Solution 4

This error mostly caused by WRONG URL, please check:

  • http or https
  • URL Name
  • username@git_url
  • wrong git name

Solution 5

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://[email protected]/TeaCodie/TeaCodie-Website.git , i.e. with a username specified?

Share:
107,990
Paul
Author by

Paul

Updated on July 14, 2020

Comments

  • Paul
    Paul almost 4 years

    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?

  • Paul
    Paul about 12 years
    USER ERROR...i think i have sorted it now...but thats for your help
  • Tyler
    Tyler over 11 years
    Please explain what it was
  • Enrichman
    Enrichman over 11 years
    Thanks, this was my case. I've changed my username from "Enrichman" to "enrichman"!
  • sglessard
    sglessard about 11 years
    Same here : was trying to clone an SVN repository by mistake.
  • Abbas Gadhia
    Abbas Gadhia almost 11 years
    yes! this was the solution. i was pulling off a deleted repository. someone silently deleted the repo without informing me :P
  • AdityaSaxena
    AdityaSaxena over 10 years
    thank you. exactly my problem and this solution worked.
  • Arjun Mehta
    Arjun Mehta about 10 years
    With newer versions of git you can do this from the command line: git remote set-url origin [email protected]:repoaccountname/repo-name.git
  • Camille Goudeseune
    Camille Goudeseune about 9 years
    "did you run git update-server-info..." is a less useful question to ask than "did you misspell the repo".