Possible Duplicate:
Undoing a git reset --hard HEAD~1
I used the command line:
git reset --hard HEAD^
how can i redo it ?
Possible Duplicate:
Undoing a git reset --hard HEAD~1
I used the command line:
git reset --hard HEAD^
how can i redo it ?
If you want to go back to HEAD ( the previous ) you can do:
git reset --hard HEAD@{1}
Note that working directory changes and staged changes are lost after you do git reset --hard
and you cannot get them back.