I randomly hit this today while trying to run Git garbage collect:

$ git gc
fatal: bad object refs/remotes/origin/HEAD
error: failed to run repack

How do I deal with this?

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *