Worktrees
- Repository.add_worktree(name: str, path: str | bytes[, ref: Reference]) Worktree
Create a new worktree for this repository. If ref is specified, no new branch will be created and the provided ref will be checked out instead.
- Repository.list_worktrees() list[str]
Return a list with all the worktrees of this repository.