title: Undo a git pull
body: <p>The questions I've seen for undoing a git pull a slightly different to mine. </p>
  
  <p>This is what I've done:</p>
  
  <p>There is a project in directory <code>A</code> (not a repo). I initialized a repository in it, added the files, but did not commit anything. Then I pulled from repository B, which overwrote a bunch of my staged files. </p>
  
  <p>I was under the impression I could use <code>git reset --hard</code> to undo the merge. Of course that just checked out the HEAD of the commits I had just pulled in. </p>
  
  <p>I should have branched and commited something before I did this pull, hindsight is nice. Is there some way I can get my old unstaged files back?</p>