rimba duplicate

Create a new worktree from an existing worktree, inheriting its branch prefix. Auto-generates a -1, -2, etc. suffix unless --as is provided. Useful for running a parallel experiment on the same base work.

Synopsis

rimba duplicate <task> [flags]

Examples

rimba duplicate auth              # Creates feature/auth-1 from feature/auth
rimba duplicate auth --as auth-v2 # Creates feature/auth-v2 from feature/auth
rimba duplicate auth --dry-run    # Preview without making changes

Common workflows

Parallel exploration from the same base

rimba duplicate payments
# Creates feature/payments-1 alongside feature/payments
# Both share the same history; diverge independently

Named duplicate for an A/B approach

rimba duplicate login-flow --as login-flow-approach-b

Flags

Flag Description
--as Custom name for the duplicate worktree (instead of auto-suffix)
--skip-deps Skip dependency detection and installation
--skip-hooks Skip post-create hooks
--dry-run Preview what would be duplicated without making changes

This site uses Just the Docs, a documentation theme for Jekyll.