-
Star
(229)
You must be signed in to star a gist -
Fork
(46)
You must be signed in to fork a gist
-
-
Save umayr/b95e11d5f22c24a872ef95d215ba2ab1 to your computer and use it in GitHub Desktop.
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} | |
# Create branch | |
git branch recovered-branch | |
# You may want to push that back to remote | |
git push origin recovered-branch:recovered-branch |
Thank you so much, you saved me there!
Lifesaver!
Thanks.
Thanx!
Thank you!!
Just saved me a day's work! Thank you!!
You deserve a Noble Peace Prize
thanks :)
Why isn't there a LIKE BUTTON ??
I was just shit oneself and now I'm jumping for joy. Thank you.
hero
Thanks man! Save my day!
Great tutorial bro thanks!
I just love you
Yet another "thank you / I love you / you are a legend" for this
Thank You so much. Life saver
Thank You so much. You are the best
Thank you for this useful snippet!
Brotherrrrr, this just saved my arse*
HERO! You saved my life! Thank you!
Thanks so much! Saved my life!
Still saving lives in 2024! Thank you so much!
Thank you bro, you are great.
Thank you, you are great.
Thx man,
Thx!!!!
Ta!
I know everybody is already thanking you but you deserve it : THANKYOU
THANK YOU