git

Link post

How to undo (almost) anything with Git

Read