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

后端 未结 20 1651
别跟我提以往
别跟我提以往 2020-12-04 10:42

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.gi         


        
20条回答
  •  猫巷女王i
    2020-12-04 10:58

    This happened to me and at first it was not apparent what had gone wrong. The previous day I had renamed my repo on github.com only changing the first character of the repo name from a lowercase letter to uppercase. I was not aware that the repo name in the origin URL was case-sensitive unit I received the error which contained the text, "did you run git update-server-info on the server." Once I edited the .git/config file to correct the case of the same letter in the origin URL, the problem was solved, the error no longer occurred and I was once again able to push my changes up to the repo on github.com. Another bit of advice: if you make changes to your repo on github, make sure to test sync'ing your local repo right away. In my case, I did not and it was the next day when I had tried to sync and couldn't because of the error and I forgot that I had renamed the repo, so I was scratching my head for a bit. Had I tested sync'ing right away, I would have caught this problem right away.

提交回复
热议问题