Skip to content

nrepo branch

Terminal window
nrepo branch <id> [options]

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.

FlagTypeDefaultDescription
--title <title>stringCopy of original titleTitle for the new variant.
--body <body>stringCopy of original bodyBody for the new variant.
--jsonboolean(see auth)Output as JSON.
--humanboolean(see auth)Output as human-readable text.
Terminal window
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 dashboard
Terminal window
nrepo branch 42 \
--title "Dark mode — Tailwind approach" \
--body "Explore using Tailwind's dark: variant instead of custom properties."
Terminal window
nrepo branch 42 --json
  • The new idea inherits the original’s tags.
  • The new idea starts with status captured.
  • A parent link is created automatically (new idea → original idea).
  • Use nrepo diff to compare the branch against its parent.