Skip to main content

prepend_branch

Function prepend_branch 

Source
pub fn prepend_branch(branch: &str) -> Result<()>
Expand description

Insert a new empty branch directly below the current one, moving the current branch onto it. Branches from the current branch’s parent, so it requires a clean worktree. Commit to it, then restack.