1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 00:15:25 +02:00
tldr/pages/common/glab-mr-merge.md
2025-05-11 20:03:01 +03:00

24 lines
656 B
Markdown

# 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 merge`
- 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:
`glab mr merge --help`