Function remove_worktree
Source pub fn remove_worktree(
repo_root: impl AsRef<Path>,
worktree_path: impl AsRef<Path>,
) -> Result<(), WorktreeError>
Expand description
Remove a worktree and optionally its branch.
§Arguments
repo_root - Root of the git repository
worktree_path - Path to the worktree to remove
§Note
This also deletes the associated branch if it exists.