glab(1)
πΈ NAME πΈ
glab-stack-reorder β Reorder a stack of diffs. (EXPERIMENTAL) β and yes bestie, this is from the glab(1) manual, so you're in the right place π
β¨ SYNOPSIS β¨
glab stack reorder [flags]
π¦ DESCRIPTION π¦
Okay so picture this: glab stack reorder opens an editor with one diff per line, so you can literally rearrange them. Main character editor moment, no cap. π
When you save and close the file, each diff's branch is rebased onto the branch of the diff now before it, and each moved diff's merge request is retargeted to match. Slay, but read this next part carefully: the rebased branches are not pushed automatically, so run glab stack sync to force-push them and replace the old commits on GitLab. Do not skip that part, bestie. π
If a rebase hits a conflict, resolve it, run git rebase --continue, and then run glab stack reorder --continue. To restore the original order instead, run glab stack reorder --abort. You got this. π«Ά
π¨ This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.
π OPTIONS π
--abort[=false]β Abort a reorder and restore original branch state. π--continue[=false]β Continue a reorder after resolving conflicts. βΆοΈ
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β Show help for this command. π«Ά-R,--repo=""β Select another repository. You can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. π
π EXAMPLE π
# Reorder the stack by choosing a new branch order in your editor
glab stack reorder
# Continue a reorder after resolving a conflict
glab stack reorder --continue
# Abort a reorder and restore the original branch order
glab stack reorder --abort
π SEE ALSO π
glab-stack(1) β the parent command is right there, go say hi π
Auto generated by spf13/cobra, dated Nov 2026, and filed under glab(1) β mwah, bye bestie πβ¨
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms