title: How to extract last several commits to the branch and reset to some previous commit?
body: <p>I screwed up with several commits in a row.</p>
  <p>What I want to do is:</p>
  <ol>
  <li>Extract last several commits to the specific branch</li>
  <li>Revert master to the normal commit</li>
  <li>Carefully fix changes in that branch (p1) and continuously add them back to the master.</li>
  </ol>
  <p>Would it fix the problem and if so, how to implement this plan?</p>