This morning I went to do a git fetch and got the following error:
fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched.
This used to work fine. It looks like git has forgotten the link between (all) my branches and the repository.
Typing git remote -v doesn't return anything.
It was working at the end of last week, and the only thing that I can think of that I have changed was installing the latest GitExtensions release. However right now I am more worried about whether there is some way I can get back the repository information.
Any ideas?
Update:
My .git/config file was empty. Although I don't know the cause, I was able to remote desktop to another computer in the company and retrieve the "remote" section of its config.
I have updated my config file, and so far it looks like it is working :-)
Update 2: I have also needed to relink the branches to the origin via:
git config branch.develop.remote origin
git config branch.develop.merge refs/heads/develop
etc