So you want to create a revert commit for a lot of commits, and git revert HEAD~10..HEAD isn't working because there are merge commits in between? Here's a workaround using a patch file:
git checkout master
git pull origin master
git log --oneline # find the hash of the commit you want to revert to
git checkout <hash>
git checkout -b my-revert-branch
git diff master > mypatch.patch
git checkout master