Git error: cannot lock existing info/refs

Blog / Architecture ·

I just messed up my local repository. Thankfully there was an answer in StackOverflow.

When I try to push to my origin I got:

error: cannot lock existing info/refs

I managed to fix it by running

git update-server-info

You may need to close and reopen your console again. It happens sometime that your console is locking the Git instance.


Krasimir Tsonev With over two decades of deep programming expertise, I offer comprehensive web consultancy and stack audits, alongside specialized workshops, training, and engaging public speaking to elevate your team's skills and optimize your digital presence. Contact me.

Keywords: existing info refs lock existing info console
Share the post on Twitter, Facebook, LinkedIn