I merged into the main master branch of my git tree a feature that was half-baked. Later, I made a couple of commits in "master" that affected completely unrelated files. All of this has been pushed to remote as well.
Now I want to revert the changes made in that half-baked feature, but without losing the later commits. How can I do that?