How I Messed Up Our Repo and Ideas for Improving Git UX
Max Heiber

I think Git provided you all the information you needed to undo this change, but it could have told you more of it explicitly. I disagree with your extended suggestion. To show you all the orphaned commits as sha1-lets seems far too noisy and unhelpful. Consider that there may be dozens of new commits to show or hundreds of orphaned ones to show. You may have no “orphans” if the old commits are still contained on some other branch.

When I see something like this and I didn’t expect it or I am unsure of it, I immediately pull up a log of the old head and the new one I just pushed, like this:

git log — oneline — decorate b94d674…b21e39b