glab(1)
πΈ NAME πΈ
okay bestie, this is glab-mr-merge β literally the command that merges or accepts a merge request. that's it, that's the vibe π
β¨ SYNOPSIS β¨
glab mr merge [] [flags]
π¦ DESCRIPTION π¦
so here's the tea: by default it targets the branch you currently have checked out. no cap, it just knows. π
when a pipeline is running, auto-merge gets enabled by default β like the command is being polite and waiting for the vibe check to pass. if you absolutely cannot wait and want to merge immediately, pass --auto-merge=false. yes, the =false is doing the work, don't skip it. π
wanna control the merge strategy? that's your --squash or --rebase moment, pick your fighter. and if you want the source branch gone after merging (cleanup queen behavior π), use --remove-source-branch.
π OPTIONS π
--auto-merge[=true]β sets auto-merge. it's giving "wait for the pipeline" energy. set it tofalseif you need to merge right now, no thoughts.-m,--message=""β your custom merge commit message. make it cute, make it meaningful. π«Ά-r,--rebase[=false]β rebases the commits onto the base branch. history stays linear, we love to see it.-d,--remove-source-branch[=false]β removes the source branch on merge. bye bestie, you served your purpose π--sha=""β merges only if the HEAD of the source branch matches this SHA. use it to ensure that only reviewed commits are merged β literally the "trust but verify" flag, iykyk.-s,--squash[=false]β squashes commits on merge. one commit, one moment, one iconic little package π--squash-message=""β your custom squash commit message. because if you're squashing, you're gonna want to say something.-y,--yes[=false]β skips the submission confirmation prompt. no "are you sure?" just send it. π₯
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β shows help for this command. when in doubt, ask for help, that's self-care.-R,--repo=""β selects another repository. you can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. the full URL or Git URL is also accepted. so many ways to point at the right repo, pick your fave β¨
π EXAMPLE π
# Merge a merge request
glab mr merge 235
glab mr accept 235
# Finds open merge request from current branch
glab mr merge
π SEE ALSO π
ok that's the whole page bestie, go merge something iconic. π β¨
auto generated by spf13/cobra, Nov 2026 β and yeah, this was the glab(1) manual page, mwah π«Άπ
π¦ 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