sincecutoff.com
← all changes

gh stack add offers to initialize a stack

Introduced 2026-09-02 · score 0.94

HOW TO USE IT

When `gh stack add` runs interactively on a branch outside a stack, accept its offer to initialize a stack; the supplied or generated branch name becomes the first layer.

gh stack add [branch]

WHY THIS HELPS

Add the current branch as the first layer when working from a branch that is not part of a stack.

BEFORE THIS CHANGE

Previously, running `add` from a branch outside a stack failed.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.1.1
  • branch (optional positional argument): Branch name; when initializing from a non-stack branch, the supplied or auto-generated name becomes the first layer.
  • Prerequisite: The documented initialization offer is interactive.
  • Prerequisite: Install the extension with `gh extension install github/gh-stack`. Requires GitHub CLI 2.0+ and Git 2.36+; authenticate with `gh auth login` if needed.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card