git revert
git revert <commit>
Risk: Safe
What it does
Makes a new commit that undoes an old one.
When to use it
To undo a commit others already have.
Example
$ git revert HEADUndo the last commit, safely.
Learn it in: Undo safely with revert · Official docs