Link: How to undo (almost) anything with Git A good document that worths clipping down here for future reference.