wtm reparent
This content is for v0.28. Switch to the latest version for up-to-date documentation.
Change the parent one or more worktrees are rebased onto
Synopsis
Section titled “Synopsis”Change the recorded parent (source branch) of one or more worktrees. Only the
metadata is updated — the rebase happens on the next wtm sync. Pass the worktrees
and --to
wtm reparent [branch...] [flags]Examples
Section titled “Examples” # Pick the worktrees and their new parent wtm reparent
# feat/login was merged: stack its child on main, then rebase it wtm reparent feat/login-ui --to main --yes wtm sync feat/login-uiOptions
Section titled “Options” -h, --help help for reparent --output string Output format: text or json (default "text") --to string New parent branch to rebase onto -y, --yes Skip all prompts; resolve every decision from flags and safe defaults (needs at least one worktree and --to)Options inherited from parent commands
Section titled “Options inherited from parent commands” -q, --quiet Silence human output; errors and the exit code are unaffected, and --output json still emits its documentSEE ALSO
Section titled “SEE ALSO”- wtm - Orchestrate git worktrees and team dev workflows from the terminal