create a branch from this PR in this branch
```
git checkout -b new_branch
```
in that new branch rebase to get rid of everything you don't want
```
git rebase -i <beginning commit>
```
then just delete the commits you don't want

in the current branch do the same thing