Create a branch with the last commit you agree with:
git branch my-branch <sha> git checkout my-branch
Select commits to query as patches :
git format-patch -10 <sha> --stdout > 0001-last-10-commits.patch
Apply Patches:
git am < 0001-last-10-commits.patch
Your commits will be what they were. You can git push -u origin my-branch immediately.
hlcs
source share