title: Git bad ref & bad object issues
body: <p>Getting error below when executing command like <code>git pull</code> or <code>git fetch</code>, how to fix those issues:
  BTW, ranch <code>new-lg</code> and <code>features_empty_check</code> could be deleted, they are not used anymore.</p>
  
  <pre><code>Auto packing the repository in background for optimum performance.
  See "git help gc" for manual housekeeping.
  error: bad ref for .git/logs/refs/heads/new-lg
  fatal: bad object refs/heads/features_empty_check
  fatal: failed to run repack
  </code></pre>