Worktree/code/commands/interactive/worktree
Create or switch to an isolated Git worktree.
Supported options and rules: --base REF; --path PATH; --move-changes; --switch/--no-switch (default switch).
The canonical syntax string as recorded in the catalogue. It is authoritative — it is never reconstructed from the option and argument lists below.
namestringOptionalposition 1Name or identifier of the item referenced by this command.
Defaults, allowed values, conflicts and scope come from the catalogue; blank fields mean the catalogue records nothing, not that the constraint is absent.
--base <string>stringOptionalChoose the base Git reference used for comparison or creation.
--path <path>pathOptionalSpecify a path or subpath used by the command.
--move-changesbooleanOptionalMove eligible uncommitted changes into the newly created worktree. Default: False.
false--switchbooleanOptionalSwitch to the newly created worktree after creation. Default: True.
true--no-switchbooleanOptionalCreate the worktree without switching the active context to it. Default: False.
falseWith options
WITH OPTIONS/worktree pricing-fix --base main --move-changes
Create or switch to an isolated Git worktree.
Representative options
WITH OPTIONS/worktree pricing-fix --base main --move-changes --path skills/review
Shows representative optional controls available for this command.
Conditions under which the command is offered. Each row states its own kind of absence.
3 of 5 products mapped
Command-level mappings against 5 audited products, each with its documentation source and capture date. No documented equivalent means the audit found nothing in that product’s official documentation — it is not a claim that the product lacks the capability.
Every canonical command was reviewed against all 5 products in one pass captured 2026-09-18. A product with no mapping is a reviewed finding of no documented equivalent, not an unreviewed pair.
Captured 2026-09-18 · 238 commands × 5 products
--worktree/worktree--worktree