If you know the specific commit those pages were introduced in, you could git cherry-pick
those commits out into a new branch and switch to that temporarily.
Otherwise, an interactive rebase -- git rebase -i
-- will allow you to select the commits you want to keep and those you want to discard. This should, of course, only be done after having made full backups.