 first edits in <code>branch1</code>.</p>
</li>
<li>
<p>In the ideal world, you could have realized that the earlier
commit did not belong to the new topic when you created and switched
to <code>branch2</code> (i.e. <code>git switch -c branch2 start</code>), but nobody is
perfect.</p>
</li>
<li>
<p>But you can use <code>reset --keep</code> to remove the unwanted commit after
you switched to <code>branch2</code>.</p>
</li>
</ol>
</div>
</dd>
<dt class="hdlist1">Split a commit apart into a sequence of commits