commands.sh

glab mr merge

all

Merge GitLab merge requests.

More info →

Options (3)

-d, --remove-source-branchboolean

Merge the merge request, removing the branch on both the local and the remote

Example: glab mr merge {{[-d|--remove-source-branch]}}
-s, --squashboolean

Squash the current merge request into one commit with the message body and merge

Example: glab mr merge {{[-s|--squash]}} {{[-m|--message]}} "{{commit_message_body}}"
-m, --messageboolean

Squash the current merge request into one commit with the message body and merge

Example: glab mr merge {{[-s|--squash]}} {{[-m|--message]}} "{{commit_message_body}}"

Examples (5)

Merge the merge request associated with the current branch interactively

Merge the specified merge request, interactively

glab mr merge mr_number

Merge the merge request, removing the branch on both the local and the remote

glab mr merge [-d|--remove-source-branch]

Squash the current merge request into one commit with the message body and merge

glab mr merge [-s|--squash] [-m|--message] "commit_message_body"

Display help

made by @shridhargupta | data from tldr-pages