I wish to remove all commits beyond a certain commit/date before pushing the resulting git repository to GitHub.
For the main branch, I can simply reset it to that commit. But I’d like to also keep all the tags up to that commit.
Thus the question – how can I remove all tags unrelated to the current commit, while keeping all the ancestor tags? Is there any way to do it efficiently instead of manually delete each tag?
4