title: How I undo some changes in my workspace and get back to my last commit?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5004237/git-revert-to-previous-commit-status">Git: Revert to previous commit status</a>  </p>
  </blockquote>
  
  
  
  <p>I've tried some changes in my code but I messed up too many things (never work when you're tired and it's late) and I just want to go back to my last commit. I DIDN'T do <code>git add</code> or <code>git commit</code> and obviously if I do <code>git pull</code> everything is up to date.</p>
  
  <p>I thought that <code>git checkout</code> was what I needed but it didn't worked.. any help?</p>