I am using semantic-release for automated versioning and releasing of my Git repository. However, I have made a mistake and committed a breaking change on the remote repository, and I want to change it to a fix or feature without altering the Git history.
Is it possible to do this using semantic-release, or is there another tool or method that can help me achieve this?
I don't want to alter the Git history because it can cause problems with other team members who have already pulled the changes.
Any help or advice would be greatly appreciated. Thank you.
committed a breaking change on the remote repository, and I want to change it to a fix or feature without altering the Git history
[Emphasis mine.]
Impossible. That's not what Git is. The most basic fact of Git is that no commit can be altered in any way. Anything you can imagine doing to this commit involves changing history.
Obviously you can counteract the breakage by appending a further commit (such as a revert). But you cannot turn this commit into anything else. You would have to forcibly replace this commit with a different commit, and that is changing history.