When I try to push to my git repo (on an HTTPS server) i get the following error:
error: cannot lock existing info/refs
fatal: git-http-push failed
I don't know if this is relevant, but I accidentally did a
git add .git
It didn't seem to do anything, so I assumed git was jut smart enough to ignore me.
Why is git failing to push, and how can I fix it?
Pull works fine.
Extra info: I have another local clone, which I can still push to the central repo from. I think this suggests I have done something to my .git directory.
This seemed to fix it:
I'm not sure why, but it works now.