title: Git - how to roll back all changes to last commit?
body: <p>I accidently deleted source directory.. I thought I was deleting another directory. But I have last commit that is where I need to revert back. </p>
  
  <p>I have two branches: </p>
  
  <pre><code>master
  dev1
  </code></pre>
  
  <p>On dev1:</p>
  
  <pre><code>git add .
  git commit -m 'commit message'
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>git checkout master
  git merge dev1
  </code></pre>
  
  <p>Then I accidently deleted whole repository.</p>
  
  <p>Then I hard reseted to last commit and I see it shows that all correct changes were made.
  But when I got to my directory it is old directory (I copied old one, but it is not being deleted from here).
  What Should I do?</p>