title: Reset local repository branch to be just like remote repository HEAD
body: <p>How do I reset my local branch to be just like the branch on the remote repository?</p>
  <p>I tried:</p>
  <pre><code>git reset --hard HEAD
  </code></pre>
  <p>But <code>git status</code> claims I have modified files:</p>
  <pre><code>On branch master
  Changes to be committed:
    (use &quot;git reset HEAD &lt;file&gt;...&quot; to unstage)
        modified:   java/com/mycompany/TestContacts.java
        modified:   java/com/mycompany/TestParser.java
  </code></pre>