title: Git Cannot lock ref 'HEAD'
body: <p>I made some commits yesterday but didn't push them. Today I woke up I tried to push it and I had </p>
  
  <blockquote>
    <p>error: bad index file sha1 signature
    fatal: index file corrupt</p>
  </blockquote>
  
  <p>I tried to:</p>
  
  <pre><code>$ del .git\index
  $ git reset
  </code></pre>
  
  <p>and  then tried to push my commits once again but it fail and now I have</p>
  
  <blockquote>
    <p>fatal: cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/light-mode': reference broken</p>
  </blockquote>
  
  <p>What's going on? I don't want to lose my commits but more important I don't want to lose my local changes into project.</p>