Skip to main content

worktree_add

Function worktree_add 

Source
pub fn worktree_add(
    root: &Path,
    path: &Path,
    branch: &str,
    base_sha: &str,
) -> Result<()>
Expand description

git worktree add <path> -b <branch> <base_sha> (creates and checks out).