Skip to content

--adopt is still recommended in the CLI docs #161

Closed
windsornguyen/gh-stack
#4

Description

@DavisVaughan

gh-stack/cmd/root.go

Lines 25 to 26 in 514f5ab

# Or turn an existing set of branches into a stack
$ gh stack init --adopt branch1 branch2 branch3

but using it results in a deprecation warning

gh-stack/cmd/init.go

Lines 119 to 124 in 514f5ab

// --adopt is deprecated; print a notice and continue normally.
if opts.adopt {
cfg.Warningf("The --adopt flag is deprecated. Existing branches are now adopted automatically.")
cfg.Printf("You can simply run: %s",
cfg.ColorCyan("gh stack init <branch1> <branch2> ..."))
}

looks like you can literally just remove the --adopt flag from the CLI docs and it would work the same

Activity

  1. added
    bugBug Reports
    topic: docsgh-stack documentation site issues (e.g. broken dark mode).
    on Jul 23, 2026
  2. self-assigned this
    on Jul 23, 2026
  3. linked a pull request that will close this issueDocs Content Updates #185on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugBug Reportstopic: docsgh-stack documentation site issues (e.g. broken dark mode).

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions