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 git checkout -b my-revert-branch git diff master > mypatch.patch git checkout master git branch -D my-revert-branch git checkout -b my-revert-branch git apply mypatch.patch rm mypatch.patch git add -A . git commit -m "Revert changes" git push origin my-revert-branch ```