Skip to main content

create_worktree

Function create_worktree 

Source
pub fn create_worktree(
    repo: &Path,
    ref_name: &str,
    worktree_path: &Path,
) -> Result<()>
Expand description

Create a detached worktree at worktree_path pointing at ref_name.

ยงErrors

Returns an error if git worktree add fails.