[Solved] Git gives "cannot lock ref" errors

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ArunGiridhar
Posts: 38
Joined: Sun Mar 29, 2015 10:02 pm

[Solved] Git gives "cannot lock ref" errors

Post 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)
Last edited by ArunGiridhar on Wed Jun 22, 2022 12:23 am, edited 1 time in total.
ArunGiridhar
Posts: 38
Joined: Sun Mar 29, 2015 10:02 pm

Re: Git gives "cannot lock ref" errors

Post by ArunGiridhar »

Couldn't fix the git problem, so I deleted the directory and downloaded all the source again. Brute force.
Post Reply