LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

glab-mr

Manage GitLab merge requests from the command line

TLDR

List merge requests
$ glab mr list
copy
Create merge request
$ glab mr create
copy
View merge request
$ glab mr view [number]
copy
Checkout merge request
$ glab mr checkout [number]
copy
Merge a merge request
$ glab mr merge [number]
copy
Approve merge request
$ glab mr approve [number]
copy

SYNOPSIS

glab mr command [options]

DESCRIPTION

glab mr manages GitLab merge requests from the command line. It provides subcommands for creating, viewing, reviewing, approving, and merging MRs without leaving the terminal. Run `glab mr <subcommand> --help` for the flags of each subcommand.

SUBCOMMANDS

list

List merge requests.
create
Open a new merge request.
view
Display a merge request.
checkout
Check out a merge request branch locally.
update
Modify merge request details (title, description, labels, etc.).
merge
Merge a merge request.
rebase
Rebase a merge request's source branch against its target.
approve
Approve a merge request.
approvers
View or manage merge request approvers.
revoke
Revoke approval of a merge request.
close
Close a merge request.
reopen
Reopen a closed merge request.
delete
Delete a merge request.
diff
Show changes in a merge request.
note
Add a comment to a merge request.
issues
View issues linked to a merge request.
subscribe / unsubscribe
Subscribe to, or stop following, a merge request's notifications.
todo
Add a merge request to your GitLab to-do list.

INSTALL

sudo apt install glab
copy
sudo dnf install glab
copy
sudo pacman -S glab
copy
sudo apk add glab
copy
sudo zypper install glab
copy
brew install glab
copy
nix profile install nixpkgs#glab
copy

SEE ALSO

RESOURCES

Copied to clipboard
Kai