Files
vince-winkintel__gitlab-cli…/glab-stack/SKILL.md
T
Vince Lozada 92544ee488 docs: audit glab v1.93.0 user-facing skill changes (#60)
* docs: audit glab v1.93.0 skill updates

* docs: remove version-history metadata from skill files

---------

Co-authored-by: Steven <steven@Stevens-Mac-mini.local>
2026-04-24 11:00:14 -05:00

2.8 KiB

name, description
name description
glab-stack Manage stacked merge requests for complex multi-part changes. Use when creating dependent MRs, managing MR stacks, or working with multi-layer changes. Triggers on stack, stacked MRs, dependent MRs, MR stack, stacked changes.

glab stack

Overview


  Stacked diffs are a way of creating small changes that build upon each other to ultimately deliver a feature. This
  kind of workflow can be used to accelerate development time by continuing to build upon your changes, while earlier
  changes in the stack are reviewed and updated based on feedback.
  This feature is experimental. It might be broken or removed without any prior notice.
  Read more about what experimental features mean at
  https://docs.gitlab.com/policy/development_stages_support/
  Use experimental features at your own risk.
  USAGE
    glab stack <command> [command] [--flags]
  EXAMPLES
    $ glab stack create cool-new-feature
    $ glab stack sync
  COMMANDS
    amend [--flags]      Save more changes to a stacked diff. (EXPERIMENTAL)
    create               Create a new stacked diff. (EXPERIMENTAL)
    first                Moves to the first diff in the stack. (EXPERIMENTAL)
    last                 Moves to the last diff in the stack. (EXPERIMENTAL)
    list                 Lists all entries in the stack. (EXPERIMENTAL)
    move                 Moves to any selected entry in the stack. (EXPERIMENTAL)
    next                 Moves to the next diff in the stack. (EXPERIMENTAL)
    prev                 Moves to the previous diff in the stack. (EXPERIMENTAL)
    reorder              Reorder a stack of merge requests. (EXPERIMENTAL)
    save [--flags]       Save your progress within a stacked diff. (EXPERIMENTAL)
    switch <stack-name>  Switch between stacks. (EXPERIMENTAL)
    sync                 Sync and submit progress on a stacked diff. (EXPERIMENTAL)
  FLAGS
    -h --help            Show help for this command.
    -R --repo            Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.

Quick start

glab stack --help

Current behavior

glab stack sync supports --update-base, --assignee, and --label.

# Sync stack and rebase onto updated base branch
glab stack sync --update-base

# Sync stack and set MR metadata during submission
glab stack sync --assignee @reviewer --label backend

Use --update-base when the base branch (e.g. main) has been updated and you want to rebase your entire stack on top of it before pushing.

Use --assignee / --label when you want the synced stack's merge requests to pick up reviewer ownership or routing labels as part of the same submission step.

Subcommands

See references/commands.md for full --help output.