A bad commit that broke Ansible inventory parsing is already on the shared main branch and teammates have fetched it. How should the team undo that change safely?
Select an answer to reveal the explanation.
Short Explanation
Once the bad change is in everyone’s hands, you do not rip pages from the shared book—you add a new page that crosses out the mistake. That new page is git revert. Resetting shared main and force-pushing breaks teammates who already fetched.
Full Explanation
git revert creates a forward commit that undoes a specified change, preserving history for anyone who already pulled the bad commit. Resetting and force-pushing a shared branch rewrites published history and is the unsafe team-breaking move. Revert is the official 1.10.e safe undo for published commits.