How to handle git gc fatal: bad object refs/remotes/origin/HEAD error?
<p>I randomly hit this today while trying to run Git <em>garbage collect</em>:</p>

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

<p>How do I deal with this?</p>