LinuxCommandLibrary

glab-mr

Manage GitLab merge requests from the command-line.

TLDR

Create a merge request

$ glab mr create
copy


Check out a specific merge request locally
$ glab mr checkout [mr_number]
copy


View the changes made in the merge request
$ glab mr diff
copy


Approve the merge request for the current branch
$ glab mr approve
copy


Merge the merge request associated with the current branch interactively
$ glab mr merge
copy


Edit a merge request interactively
$ glab mr update
copy


Edit the target branch of a merge request
$ glab mr update --target-branch [branch_name]
copy

Copied to clipboard