I accidentally did
git reset --hard origin
earlier, and followed the instructions in How to undo 'git reset'? and did a git reset HEAD@{1}
(note that git reset --hard origin
was the last command I executed prior to executing this command).
This revived all my unstaged/uncommitted changes, but it seems to have also revived my changes from earlier commits. I see the files modified in my previous commits in my "Changes not staged for commit" currently.
I am wondering why this happened?