My problem is almost similar. I have uncommitted files before I enter git reset --hard
.
Thankfully. I managed to skip all these resources. After I noticed that I can just undo (ctrl-z
). I just want to add this to all of the answers above.
Note. Its not possible to ctrl-z
unopened files.