How to Cancel With Git

Junio Hamano explains three different kinds of undo in Git.