Not long ago one of my coworkers shared this amazingly comprehensive guide to undoing things in git and now I’m sharing it with you :) If you use git, you need this.