Options (3)
-d, --remove-source-branchbooleanMerge the merge request, removing the branch on both the local and the remote
Example:
glab mr merge {{[-d|--remove-source-branch]}}-s, --squashbooleanSquash 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, --messagebooleanSquash 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_numberMerge 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
glab mr merge --helpmade by @shridhargupta | data from tldr-pages