nrepo branch
Synopsis
Section titled “Synopsis”nrepo branch <id> [options]Description
Section titled “Description”nrepo branch creates a new idea that is a fork of an existing one. The new idea copies the original’s body and tags by default, and a parent relation is automatically created from the new idea back to the original. You can override the title and body of the new variant.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--title <title> | string | Copy of original title | Title for the new variant. |
--body <body> | string | Copy of original body | Body for the new variant. |
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”Branch with a new title
Section titled “Branch with a new title”nrepo branch 42 --title "Dark mode v2 — CSS custom properties approach"Output:
Created #55 Dark mode v2 — CSS custom properties approach ↳ parent: #42 Add dark mode to dashboardBranch with new title and body
Section titled “Branch with new title and body”nrepo branch 42 \ --title "Dark mode — Tailwind approach" \ --body "Explore using Tailwind's dark: variant instead of custom properties."Branch with JSON output
Section titled “Branch with JSON output”nrepo branch 42 --jsonBehavior
Section titled “Behavior”- The new idea inherits the original’s tags.
- The new idea starts with status
captured. - A
parentlink is created automatically (new idea → original idea). - Use
nrepo diffto compare the branch against its parent.
Related commands
Section titled “Related commands”- nrepo diff — compare a branch against its parent
- nrepo merge — merge two ideas together
- nrepo link — manage idea relations
- nrepo show — view idea details