title: During merge, how can I reset all files while preserving MERGE_HEAD?
body: <p>For example, let's say that there was a conflict during a merge into master, like this.</p>
  
  <pre><code>A --- M &lt;- master
      /
  B -
  </code></pre>
  
  <p>Sometimes I find out that the conflict, or the commit B was too messy (for example, crlf changes on all files) so I decide to reset the file status to A and modify feature specific files only. (i.e. write M from scratch.)</p>
  
  <p>However, if I do <code>git reset --hard .</code>, the files are resetted but also the MERGE_HEAD is deleted afterwards, making it impossible to create a merge commit.(<code>fatal: There is no merge in progress (MERGE_HEAD missing).</code>)</p>
  
  <p>How can I reset all files while perserving MERGE_HEAD?</p>