Is there any way to recover uncommitted changes to the working directory from a git reset --hard HEAD?
git reset HEAD@{4}
4 is changes before 4 steps ago. if you select a correct step, it should show the list of files that you removed from hard. then do:
$ git reflog show
it's going to show you local commit history we've already created. now do:
$ git reset --hard 8c4d112
8c4d112 is a code you want to reset your hard there. let's look at https://www.theserverside.com/video/How-to-use-the-git-reset-hard-command-to-change-a-commit-history to get more information.