title: How to use Git Revert
body: <p>How is <code>git revert</code> used?</p>
  <p>This might sound like a duplicate question but when people ask it, the response is often, use <code>git reset</code> as per <em><a href="https://stackoverflow.com/questions/1895059/revert-to-a-commit-by-sha-hash">Revert to a commit by a SHA hash in Git?</a></em>.</p>
  <p>Then when someone asks how to use <code>git reset</code> people reply saying you should use <code>git revert</code> as per <em><a href="https://stackoverflow.com/questions/19023981/git-how-to-rollback">Git - how to rollback</a></em>.</p>
  <p>Before you know it, eight different people appeared with their own unique ways to save the OP's ass, all of which is over your head.</p>
  <p>So let’s try and stick the brief and write a Dummies Guide to <code>git revert</code>.</p>
  <p>A scenario: you've committed twice to master and it’s bad. You've pushed and other people have your bad changes.</p>
  <p>You want to undo it. It’s not something you can hand-undo in code yourself, say some wizard or package manager changed tons of stuff all over the place - you just want to put it all back how it was.</p>
  <p>This is what source control is all about. I'm sure it’s easy.</p>
  <p>Okay, you're going to use <code>git revert</code>, but how?</p>
  <p>And after running <code>git revert</code>, do you have to do something else after? Do you have to commit the changes revert made or does revert directly commit to the repository or what??</p>
  <p>Obviously, you'll need to push again and probably announce your balls-up to the team.</p>