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 to false if 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 either OWNER/REPO or GROUP/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