What does this do?
git revert a1b2c3
- Adds a commit undoing that one
- Deletes that commit from history
- Moves the branch back one commit
- Restores the files without a commit
revert is safe on shared branches because it rewrites nothing.
Play DevOps ▸
git revert a1b2c3