Page 1 of 1

[Solved] Git gives "cannot lock ref" errors

Posted: Tue Jun 21, 2022 8:09 pm
by ArunGiridhar
I did not get any error with prior git pulls or builds, but suddenly I'm getting this error. Is this something to be fixed on the server side?

Code: Select all

$ git pull
error: cannot lock ref 'refs/remotes/origin/typos': 'refs/remotes/origin/typos/offseting' exists; cannot create 'refs/remotes/origin/typos'
From https://github.com/FreeCAD/FreeCAD
 ! [new branch]            typos      -> origin/typos  (unable to update local ref)

Re: Git gives "cannot lock ref" errors

Posted: Wed Jun 22, 2022 12:22 am
by ArunGiridhar
Couldn't fix the git problem, so I deleted the directory and downloaded all the source again. Brute force.