A change that has already been shared can still be undone. Use git revert to apply the opposite change as a new commit. The history then shows both the original change and the decision to undo it.
Git · Lesson 8
git revert
Learn how git revert records an undo operation without rewriting the original commit.