snippetbashTip
glab mr — Manage GitLab merge requests. Some subcommands such as `create` have their own usage documentation.
Viewed 0 times
commandrequestsclimanagegitlabmergesomeglab mr
Problem
How to use the
glab mr command: Manage GitLab merge requests. Some subcommands such as create have their own usage documentation. More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/_index.md>.Solution
glab mr — Manage GitLab merge requests. Some subcommands such as create have their own usage documentation. More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/_index.md>.Create a merge request:
glab mr createCheck out a specific merge request locally:
glab mr checkout {{mr_number}}View the changes made in the merge request:
glab mr diffApprove the merge request for the current branch:
glab mr approveMerge the merge request associated with the current branch interactively:
glab mr mergeEdit a merge request interactively:
glab mr updateEdit the target branch of a merge request:
glab mr update --target-branch {{branch_name}}Code Snippets
Create a merge request
glab mr createCheck out a specific merge request locally
glab mr checkout {{mr_number}}View the changes made in the merge request
glab mr diffApprove the merge request for the current branch
glab mr approveMerge the merge request associated with the current branch interactively
glab mr mergeContext
tldr-pages: common/glab mr
Revisions (0)
No revisions yet.