Wow. That's not an answer I was expecting to see, and is (if I may say so) far more brutal an approach than would have entered my mind.
Not saying that's bad, by the way.
Did that approach take special training?
Training? Hell no. You just approach the next serious issue without preceding git branch -b and do git reset HEAD --hard once it works.
git branch -b
git reset HEAD --hard
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.