The questions I've seen for undoing a git pull a slightly different to mine.
This is what I've done:
There is a project in directory A
(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.
I was under the impression I could use git reset --hard
to undo the merge. Of course that just checked out the HEAD of the commits I had just pulled in.
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?