git re-flog is what you do with those idiots who mess up the repo so that someone else has to come in and fix it again.