title: undo changes on git branch
body: <p>I created and switched to a new branch and made some changes that haven't been commited.
  How do I return to the state of my last commit?
  I used</p>
  
  <pre><code>git reset --hard HEAD
  </code></pre>
  
  <p>but all the changed files are still present</p>
  
  <p>edit;
  after running the above and then git status it says "nothing added to commit but untracked files present".
  I thought using git reset...would get rid of all the changes</p>