Is it possible to undo the changes caused by the following command? If so, how?
git reset --hard HEAD~1
My problem is almost similar. I have uncommitted files before I enter git reset --hard.
git reset --hard
Thankfully. I managed to skip all these resources. After I noticed that I can just undo (ctrl-z).
ctrl-z