Is there any way to recover uncommitted changes to the working directory from a git reset --hard HEAD?
git reset --hard HEAD
If you are trying to use the code below:
git reflog show # head to recover to git reset HEAD@{1}
and for some reason are getting:
error: unknown switch `e'
then try wrapping HEAD@{1} in quotes
HEAD@{1}
git reset 'HEAD@{1}'