title: Why git can't do hard/soft resets by path?
body: <p><code>$ git reset -- &lt;file_path&gt;</code> can reset by path.</p>
  
  <p>However, <code>$ git reset (--hard|--soft) &lt;file_path&gt;</code> will report an error like below:</p>
  
  <pre><code>Cannot do hard|soft reset with paths.
  </code></pre>