Problem Statement
Which command is safer to undo a public commit on a shared branch?
Explanation
`revert` creates a new commit that negates the changes without rewriting history, safe for shared branches.
Practice Sets
This question appears in the following practice sets:
