title: git: how to move some commits to new branch
body: <p>I have been working in straight line:</p>
  
  <pre><code>A---B---C---D---E---F (master:HEAD)
  </code></pre>
  
  <p>Now I want to move backward:</p>
  
  <pre><code>git checkout C
  </code></pre>
  
  <p>and move few last commits to a new branch:</p>
  
  <p>Option 1:</p>
  
  <pre><code>          D---E---F (new:HEAD)
           /
  A---B---C (master)
  </code></pre>
  
  <p>Option 2:</p>
  
  <pre><code>          F (new:HEAD)
           /
  A---B---C (master)
  </code></pre>
  
  <p>How to rebase to Option 1 and how to Option 2?</p>