title: Best approach: Move code from branch A to new branch B
body: <p>My feature branch <code>foo</code> includes small bits of another upcoming feature that needs more work later <code>bar</code></p>
  <ul>
  <li><code>develop/foo</code>: Includes code i don't want here (committed &amp; pushed)</li>
  <li><code>develop/bar</code>: New branch, where i want the unwanted code from <code>foo</code></li>
  </ul>
  <p>A way to visualise it is to think different items are added to a list in one commit, now to contain fewer things, until <code>bar</code> is merged.</p>
  <p><strong>Example commit:</strong></p>
  <pre><code>if (addToList) {
      list.add(lorem)
      list.add(ipsum)
      list.add(dolor) // *
  }
  </code></pre>
  <ul>
  <li><code>*</code> Line needs to be moved to branch <code>bar</code></li>
  </ul>
  <p>Whats the best approach? I can copy file by file over to the new branch but it takes a lot of time</p>