author: Krasimir Tsonev

Hi there, I'm . Senior front-end engineer with over 13 years of experience. I write, speak and occasionally code stuff.

Git error: cannot lock existing info/refs

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.
If you enjoy this post, share it on Twitter, Facebook or LinkedIn. Or maybe comment below: