title: How to split a git branch into two branches?
body: <p>I'm trying to help out a coworker who accidentally created one feature branch from another feature branch, rather than creating the second one from master. Here is essentially what we have now…</p>
  
  <pre><code>Master ---A---B---C
                     \
                Foo   E---F---F---H
                                   \
                              Bar   J---K---L---M
  </code></pre>
  
  <p>And here is what we'd like to have…</p>
  
  <pre><code>Master ---A---B---C
                    |\
               Foo  | E---F---F---H
                    |
               Bar  J---K---L---M
  </code></pre>
  
  <p>One way I thought of would be to create FooV2 and BarV2 branches, and cherry-pick the individual commits into the appropriate V2 branches. But I'm curious, is there a better way to handle this situation?</p>