gh stack
A GitHub CLI extension for managing stacked branches and pull requests. More information: https://docs.github.com/en/pull-requests/reference/stacked-prs-cli-commands.
- Start a new stack interactively (creates and checks out the first branch):
gh stack init
- Start a new stack specifying branches upfront:
gh stack init
- Add a branch on top of the stack:
gh stack add
- Push all branches to the default remote:
gh stack push
- Push all branches to a specified remote:
gh stack push --remote
- View the stack:
gh stack view
- Open a stack of PRs:
gh stack submit
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
