Skip to main content

remove_worktree

Function remove_worktree 

Source
pub fn remove_worktree(
    repo_root: &Path,
    worktree_path: &Path,
    force: bool,
) -> Result<(), WorktreeError>
Expand description

Removes a worktree via git worktree remove (optionally --force) and prunes worktree metadata.