create

Create a worktree and prepare its local Docker setup.

Usage

docktree create <branch>

Runs git worktree add -b <branch> and then runs setup steps (copy files, create symlinks, run commands) from docktree.yml.

Arguments

ArgDescription
<branch>The branch name for the new worktree (required)

Example

docktree create feature/dark-mode

This is equivalent to running docktree prepare after git worktree add. To start the stack after creating, use docktree up --create <branch> instead.