0

I did a reset master to here and deleted all commits, can I undo this action? Save me please.

c7c9e0d (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: reset: moving to c7c9e0d5c2f206764737185dfee0e80ad29d33d5
981159f HEAD@{1}: reset: moving to 981159f48ee83bba760e021aa07e1d933504518d
e442468 HEAD@{2}: reset: moving to e4424682efdd57f688181e8c004672dd4d0e3ab3
402c21b HEAD@{3}: commit: Contact - add Support and Billing phone
e442468 HEAD@{4}: clone: from https://gitlab.com/
  • 2
    Did you check: https://stackoverflow.com/questions/2510276/how-to-undo-git-reset – Gaspard Merten May 17 '21 at 16:43
  • 2
    Also : you can use any hash that appear on the left (`981159f`, `e442468` ...) as a target for `git reset` : `git reset e442468` for example – LeGEC May 17 '21 at 16:44
  • Yes, i read many questions about this, but I am really scared that I will permanently delete it. I think when I get to the head 4 it will get everything back, right? – Filip Podhorský May 17 '21 at 16:46

0 Answers0