RevertThe function of the git revert command is to undo an operation and roll back the previous commit with a new commit.