Skip to main content

clawker worktree add

Create a worktree for a branch

Synopsis

Creates a git worktree for the specified branch. If the worktree already exists, the command will fail. If the branch exists but isn’t checked out elsewhere, it’s checked out in the new worktree. If the branch doesn’t exist but a remote-tracking branch matches its name (e.g. after ‘git fetch’), it’s created from the remote tip with upstream tracking configured. Otherwise the branch is created from the base ref (default: HEAD).

Examples

Options

Options inherited from parent commands

See also