Skip to main content

revert

Function revert 

Source
pub fn revert(
    repo: &Repository,
    rev: &str,
    force: bool,
    timestamp_unix: i64,
) -> Result<RevertOutcome>
Expand description

Revert HEAD: create a new commit that restores the state of HEAD’s parent.

Only reverting HEAD itself is supported. Refuses a dirty working tree unless force.