Back
Is it possible to undo the changes caused by the following command? If so, how?
git reset --hard HEAD~1
This is very simple, run the following command:
$ git reset --hard HEAD@{1}
31k questions
32.8k answers
501 comments
693 users