snippetbashTip
glab mr merge — Merge GitLab merge requests. More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/s
Viewed 0 times
glab mr mergecommandrequestscligitlabmergemore
Problem
How to use the
glab mr merge command: Merge GitLab merge requests. More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/merge.md>.Solution
glab mr merge — Merge GitLab merge requests. More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/merge.md>.Merge the merge request associated with the current branch interactively:
glab mr mergeMerge 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:
glab mr merge --helpCode Snippets
Merge the merge request associated with the current branch interactively
glab mr mergeMerge 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
glab mr merge --helpContext
tldr-pages: common/glab mr merge
Revisions (0)
No revisions yet.