Question 18
A faulty commit is already on a shared main branch and other developers have pulled it. The team wants an auditable undo without rewriting shared history. What should it do?
Reset the shared branch to an earlier commit and force-push the rewritten history.
Create a new commit that reverses the faulty changes while preserving shared history.
Delete and recreate the branch so contributors can pull a clean replacement history.
Amend the faulty commit and ask every contributor to rebuild work on the new version.