Worktree Management
Ot replaces git worktree boilerplate with a streamlined CLI that handles directory management and setup hooks.
Commands
Section titled “Commands”List worktrees
Section titled “List worktrees”ot wt listAdd a worktree
Section titled “Add a worktree”# Add worktree for existing branchot wt add feature/login
# Create new branch and worktreeot wt add -b feature/new-ui
# Add with custom baseot wt add -b fix/bug --base v1.2.0Remove a worktree
Section titled “Remove a worktree”# Remove worktree directory onlyot wt remove feature/login
# Remove worktree and delete the branchot wt remove --with-branch feature/loginCopy files between worktrees
Section titled “Copy files between worktrees”# Copy from main to current worktreeot wt cp main@.env .env
# Copy to main from current worktreeot wt cp .env main@.env
# Copy with glob patterns (preserves directory structure)ot wt cp main@./packages/**/dist .Path spec format: [branch]@<path>. If no branch is specified, the current worktree is used.