A cheatsheet for how to Git out of tricky Git situations.