How can I undo git reset --hard HEAD~1?

后端 未结 18 3331
逝去的感伤
逝去的感伤 2020-11-22 00:21

Is it possible to undo the changes caused by the following command? If so, how?

git reset --hard HEAD~1
18条回答
  •  长情又很酷
    2020-11-22 00:36

    I've just did a hard reset on wrong project. What saved my life was Eclipse's local history. IntelliJ Idea is said to have one, too, and so may your editor, it's worth checking:

    1. Eclipse help topic on Local History
    2. http://wiki.eclipse.org/FAQ_Where_is_the_workspace_local_history_stored%3F

提交回复
热议问题