Skip to main content

reset_hard

Function reset_hard 

Source
pub fn reset_hard() -> Result<()>
Expand description

Reset the worktree and index to HEAD. Safe to lose nothing only on a clean tree; callers must check worktree_is_clean first.