Skip to main content

switch

Function switch 

Source
pub fn switch(
    repo: &Repository,
    branch: &str,
    force: bool,
) -> Result<SwitchOutcome>
Expand description

Switch HEAD to another branch, restoring its files. Refuses a dirty working tree unless force.