Undoing things in Git
Sometimes, when you’re working on a project, things get into a weird place. The power that Git provides can make it unwieldy to work with at times. Sometimes you you might not remember the correct command. You’re not alone in that experience. It seems this a common problem for developers. There’s a great flow chart that helps you solve your Git problems. It came across my stream a few weeks back. It helps simplify the decision process for you.
The book Pro Git by Scott Chacon and Ben Straub discusses undoing things in it’s Git Basics chapter. I recommend this book for anyone that wants to use Git effectively. It’s the primary resource I used to learn Git. It uses plain language to explain the complex ideas of Git. GitHub has it’s own page for helping you undoing things. Hopefully, at least one of these resources can help you solve your Git problems.