title: Broken branch in git, fatal: your current branch appears to be broken
body: <p>Here is my case:</p>
  
  <ul>
  <li>I was working on one branch.</li>
  <li>Pushed new commits to the remote.</li>
  <li>Switched back to the master branch. </li>
  </ul>
  
  <p>But suddenly after typing <code>git checkout master</code> command my computer encountered <a href="https://en.wikipedia.org/wiki/Blue_Screen_of_Death" rel="noreferrer">blue screen of death</a> and an unexpected force shut down happened. After starting back my computer I have checked the status of my current branch and as a result I got each and every file as marked new files.</p>
  
  <p>Now, I am stuck at this point and after <code>git log</code> command I am getting error </p>
  
  <pre><code>$ git log
  fatal: your current branch appears to be broken
  </code></pre>
  
  <p>How to solve this problem and recover my branch?.</p>
  
  <p>I am working with windows 7 and git bash latest version</p>
  
  <blockquote>
    <p>Edit: <strong>I don't want to delete this branch.</strong></p>
  </blockquote>