One of the common questions associated with git is "how can I get out of this mess?". In this video you'll learn about the different "undo" commands that git provides—what they are and when to use them.
I showed the route with checking out a temporary branch to give a better flavour of what was going on, and how the reflog works. There is absolutely no reason why you can’t (and shouldn’t) take the approach you mentioned.
It’s been a while, but if I remember correctly, knowing how to do this is helpful for the challenge? Or maybe a dreamt it.
Ok. I figured it was something like that. I just wanted to make to sure I wasn’t missing something obvious. I’m fairly new to git and still getting used to working with it.
It definitely was needed for the challenge to recover a branch so it’s good to know how to get that done.