Run a shell command after creation (in the created worktree, or current directory with --no-workspace)
--from-branch
string
Create worktree from branch (defaults to current branch)
--from-issue
int
Create worktree from issue number
--from-issue-interactive, -I
bool
Interactively select an issue to create worktree from
--from-pr
int
Create worktree from PR number
--from-pr-interactive, -P
bool
Interactively select a PR to create worktree from
--generate
bool
Generate name automatically from the current branch
--no-workspace, -N
bool
Create local branch and switch to it without creating a worktree (requires --from-pr, --from-pr-interactive, --from-issue, or --from-issue-interactive)
--output-selection
string
Write created worktree path to a file
--query, -q
string
Pre-filter interactive selection (pre-fills fzf search or filters numbered list); requires --from-pr-interactive or --from-issue-interactive
--silent
bool
Suppress progress messages
--with-change
bool
Carry over uncommitted changes to the new worktree