pub fn remove_worktree<P: AsRef<Path>>(path: P, force: bool) -> Result<()>Expand description
Remove a worktree at the specified path.
By default, this will fail if the worktree has uncommitted changes.
Use force: true to remove even with uncommitted changes.
§Arguments
path- The path of the worktree to removeforce- If true, remove even if the worktree has uncommitted changes
§Returns
Ok(())- Worktree removed successfullyErr- If removal fails