Timeline for How can I undo git reset --hard HEAD~1?
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 30, 2022 at 15:12 | comment | added | Thieu Nguyen | amazing solution. Just use the "git reflog" to see your commit you want to take back and do above solution. | |
Oct 19, 2022 at 17:45 | comment | added | Sebastián Vansteenkiste | Excellent for when you've realized that you just resetted a branch by mistake and starting to panic. | |
Jun 12, 2017 at 19:06 | comment | added | forresthopkinsa | Note that this is not the solution if you've made any other repo changes since the reset. Definitely take a look at the reflog before running anything. | |
Feb 26, 2011 at 15:13 | history | answered | markmc | CC BY-SA 2.5 |