I coded a time-limited feature that has been merged to master and shipped to production. Now that the time is up, I'd like to remove the commits containing the feature from the code base.
Ordinarily I would do a git rebase -i
and delete the commits.
However, these commits have already been pushed to the remote repository, so when I rebase locally and try to push the branch I get complaints about how the tip of my branch is behind, and can be fast-forwarded.
Is there a way to generate a "new commit" from a rebase, to undo the commits I don't want? I don't really care about having a "clean" commit history, any way to back out those commits would be great.