If I reset my last commit using git reset --hard HEAD^
, how do I undo the reset?
I don't have anything more to ask, but apparently there are length requirements for this message. I'm just writing more here to pass the quality standards.
If I reset my last commit using git reset --hard HEAD^
, how do I undo the reset?
I don't have anything more to ask, but apparently there are length requirements for this message. I'm just writing more here to pass the quality standards.
All changes that are not committed are lost. If it was committed, you can try git reflog
to restore it.
This is already asked many times, so please see this one for reference.