Command
git revertExplanation
git revert is used to create a new commit that undoes changes. It creates a new commit that undoes the changes.
Examples
Revert specific commit
git revert abc123Revert last commit
git revert HEADgit revertgit revert is used to create a new commit that undoes changes. It creates a new commit that undoes the changes.
Revert specific commit
git revert abc123Revert last commit
git revert HEAD