pub async fn remove_worktree(path: &str) -> Result<()>Expand description
Remove a git worktree.
Uses git worktree remove <path>.
§Errors
Returns an error if:
- The worktree does not exist
- The worktree contains uncommitted changes
- The git command fails