gh stack modify inserts empty branches
Introduced 2026-05-26 · score 0.94
HOW TO USE IT
When restructuring a stack, run `gh stack modify`; in its TUI press `i` to stage an empty branch below the cursor or `I` to stage one above, then press `Ctrl+S` to apply the staged changes. [v0.0.5 README](https://github.com/github/gh-stack/blob/v0.0.5/README.md#L388-L424)
gh stack modifyWHY THIS HELPS
Insert an empty branch above or below a branch while restructuring a stack.
REQUIREMENTS AND LIMITATIONS
- Version: v0.0.5
- i: Stage insertion of an empty branch below the cursor.
- I: Stage insertion of an empty branch above the cursor.
- Ctrl+S (required): Apply all staged changes.
- Prerequisite: Requires an active local stack, a clean working tree, no rebase in progress, no stack PR queued for merge, and linear commit history.
- Prerequisite: Requires GitHub CLI (`gh`) v2.0+ and installation of the extension with `gh extension install github/gh-stack`.
FIRST-PARTY EVIDENCE
- https://github.com/github/gh-stack/releases/tag/v0.0.5
- https://github.com/github/gh-stack/blob/v0.0.5/README.md#L388-L438
- https://github.com/github/gh-stack/blob/v0.0.5/README.md#L403-L424
- https://github.com/github/gh-stack/blob/v0.0.5/README.md#L411-L425
- https://github.com/github/gh-stack/blob/v0.0.5/README.md#L428-L434
- https://github.com/github/gh-stack/blob/v0.0.5/README.md#L199-L203
Check the installed version and the source before using it. Entry JSON