title: How can I change which commit master points to in git?
body: <p>In git, I've been making commits onto the master branch, when really I should have been working on a feature branch. I want to change this so that master is back to where it started, and what was on master is now on a new branch. Basically, my commit history looks like this:</p>
  
  <pre><code>A -- B -- C -- D -- E
            |         |
            |       master
       origin/master
  </code></pre>
  
  <p>And I want it to look like this:</p>
  
  <pre><code>        master
            |
  A -- B -- C -- D -- E
            |         |
            |       new_branch
       origin/master
  </code></pre>
  
  <p>How can I change where master points?</p>