Skip to content

mochi worktree ​

Manage git worktrees for the current repository.

Synopsis ​

Manage git worktrees for the current repository. Worktrees are lightweight working copies that share the same repository but can have different branches checked out simultaneously. Each worktree is auto-discovered as a flow workspace.

Use 'worktree add' to create a new branch and worktree, 'worktree list' to see all worktrees with their status, and 'worktree prune' to clean up stale ones.

Options ​

FlagTypeDescription
-h, --helphelp for worktree

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync the executable cache first, pulling git-sourced workspaces from their remotes

See also ​