Skip to main content

checkout_rev

Function checkout_rev 

Source
pub fn checkout_rev(repo_path: &Path, rev: &str) -> Result<(), String>
Expand description

Checkout a specific revision (commit SHA) in an already-cloned repo.

This detaches HEAD at the given commit and resets the working tree.