ls.
Syntax
Options
Output paths only (one per line, suitable for scripting). Mutually exclusive with
--json.Output as JSON. Mutually exclusive with
--pristine.Output Formats
Default: Table Format
The default output is a formatted table showing:- Name (directory basename)
- Branch name
- Status (dirty state, ahead/behind counts)
- Last active timestamp
- Full path
Pristine Format
With--pristine, outputs only worktree paths (one per line), suitable for scripting:
JSON Format
With--json, outputs structured JSON:
Examples
Notes
--pristineand--jsonare mutually exclusive- Worktrees are sorted by path in all output formats