git revert

Create new commits which reverse the effect of earlier ones. More information: https://git-scm.com/docs/git-revert.

git revert {{HEAD}}

git revert HEAD~{{4}}

git revert {{0c01a9}}

git revert {{branch_name~5..branch_name~2}}

git revert {{-n|--no-commit}} {{0c01a9..9a1743}}