Thursday 27 November 2014

git unable to update local ref (updated 2019-01-09)

Hi everyone.

Just want to share with all of you on how to solve "unable to update local ref" error when you try to "git pull"

# Just delete the .git/logs folder 

$ rm -r .git/logs

and then try to

$ git pull 

back

Hope I can help all of you that facing the same problem.

You may also use

git gc --prune=now

2 comments:

Craig S. said...

Thanks, that did the trick!

jobwat said...

Didn't work for me (and it's dodgy!)

But

$ git gc --prune=now

Worked like a charm :)

Google custom search

Custom Search