Skip to main content

Module revert

Module revert 

Source
Expand description

Revert — create a new commit that undoes the changes from a target commit.

Unlike checkout, revert does not go back in time — it creates a NEW commit on the current branch that applies the inverse of the target commit’s diff.

Enums§

RevertError
Errors from revert operations.

Functions§

revert
Revert a commit by creating a new commit that undoes its changes.