.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-mr-merge - Merge or accept a merge request. .SH SYNOPSIS \fBglab mr merge [] [flags]\fP .SH DESCRIPTION Defaults to the currently checked-out branch. When a pipeline is running, auto-merge is enabled by default. Pass \fB--auto-merge=false\fR to merge immediately. Use \fB--squash\fR or \fB--rebase\fR to control the merge strategy, or \fB--remove-source-branch\fR to delete the source branch after merging. .SH OPTIONS \fB--auto-merge\fP[=true] Set auto-merge. .PP \fB-m\fP, \fB--message\fP="" Custom merge commit message. .PP \fB-r\fP, \fB--rebase\fP[=false] Rebase the commits onto the base branch. .PP \fB-d\fP, \fB--remove-source-branch\fP[=false] Remove source branch on merge. .PP \fB--sha\fP="" Merge only if the HEAD of the source branch matches this SHA. Use to ensure that only reviewed commits are merged. .PP \fB-s\fP, \fB--squash\fP[=false] Squash commits on merge. .PP \fB--squash-message\fP="" Custom squash commit message. .PP \fB-y\fP, \fB--yes\fP[=false] Skip submission confirmation prompt. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX # Merge a merge request glab mr merge 235 glab mr accept 235 # Finds open merge request from current branch glab mr merge .EE .SH SEE ALSO \fBglab-mr(1)\fP