link
git/revert

Revert Commit

Create new commit that undoes changes

git
revert
commit

Command

git revert

Examples

Revert specific commit

git revert abc123

Revert last commit

git revert HEAD