Undoing things in Git

There are times when you’re developing your software project and things are going well. Then suddenly, your code gets into a funky state. “How do I go back?” you wonder. Like everything else in software, it depends upon the situation. Here’s a couple of way to undo things in Git.