I discovered an amusing pair of sites that address some of the situation where you might think your Git repository is beyond rescue.

The two sites have the same content, only slightly different language:

From the intro:

Git is hard: messing up is easy, and figuring out how to fix your mistakes is impossible. Git documentation has this chicken and egg problem where you can’t search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

Happy reading!