Is there any way to recover uncommitted changes to the working directory from a git reset --hard HEAD?
git reset --hard HEAD
You can get back a commit after doing a reset --hard HEAD.
reset --hard HEAD
Make use of "git reflog" to check the history of the HEAD in the branch.
git reflog
HEAD
You will see your commit and its id here.
Do a
git reset {commit Id of the commit you want to bring back}