In most of the cases the solution posted here should solve your problem. If not, feel free to ask to github help support.
Error was:
fatal: https://github.com/briangardener/genesis-sample.git/info/refs not found:
did you run git update-server-info on the server?
As the repository was deleted yet the .svn folder in the child theme was holding the remote url to that location. We are going to change that now.
And I did the following steps to clear the errors.
First step, use remote feature of git. Read more about remote.
git remote -v
It should return something like this;
origin git@github.com:github/git-reference.git (fetch)
origin git@github.com:github/git-reference.git (push)
Now add the new origin that applies to your github repository, it should be SSH path of the repository.
git remote add github git@github.com:schacon/hw.git
do run the remote command again
git remote -v
github git@github.com:new/hw.git (fetch)
github git@github.com:new/hw.git (push)
That's it. Now the fatal error should be gone when the next time you try to commit and push.
More solutions for this problem, try any one of the following that applies to you.
- It also happens if the repository is deleted by you. So create again, so that github can refer to it.
- When you download from the github, make sure you use git remote add for the new reference that points to your repository.
- Check the case sensitive names.
- Make sure the repository is not private and if private consult with github help docs on how to resolve this.
- If you are collaborator, ask to be added in the repository collaborators list.