InteractiveCommandVersion-control workflowsWorktrees

/worktree [NAME]

Worktree/code/commands/interactive/worktree

Create or switch to an isolated Git worktree.

Options
5
Arguments
1
Examples
2
Industry
3 of 5 mapped

About

Supported options and rules: --base REF; --path PATH; --move-changes; --switch/--no-switch (default switch).

Syntax

The canonical syntax string as recorded in the catalogue. It is authoritative — it is never reconstructed from the option and argument lists below.

/worktree [NAME]

Arguments

  • namestringOptionalposition 1

    Name or identifier of the item referenced by this command.

Options

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>stringOptional

    Choose the base Git reference used for comparison or creation.

  • --path <path>pathOptional

    Specify a path or subpath used by the command.

  • --move-changesbooleanOptional

    Move eligible uncommitted changes into the newly created worktree. Default: False.

    Defaultfalse
  • --switchbooleanOptional

    Switch to the newly created worktree after creation. Default: True.

    Defaulttrue
  • --no-switchbooleanOptional

    Create the worktree without switching the active context to it. Default: False.

    Defaultfalse

Examples

  • With 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.

Availability & requirements

Conditions under which the command is offered. Each row states its own kind of absence.

Conditions
git repository
Requires repository
git
Requires authentication
UnknownThe catalogue records no auth requirement
Requires capabilities
None recorded
Platforms
UnknownAn empty platform list is not a claim of universal support

Relationships

Aliases

None recordedNo alias resolves to this command

Alternate surfaces

Not applicableThis command exists on one surface only

Related commands

Industry comparison

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

Open in Compare →