LinuxCommandLibrary

git-mr

Check out GitLab merge requests

TLDR

Check out merge request

$ git mr [123]
copy
Check out from origin
$ git mr origin [123]
copy
Clean up merge request
$ git mr --clean [123]
copy

SYNOPSIS

git mr [remote] number

DESCRIPTION

git mr checks out GitLab merge requests locally for testing or review. It fetches the merge request reference and creates a local branch automatically, simplifying the code review workflow.
The command handles ref fetching and branch creation in a single step. For GitHub repositories, the equivalent command is `git pr`.

PARAMETERS

REMOTE

Remote name (default: origin).
NUMBER
Merge request number.
--clean
Delete local MR branch.
--help
Display help information.

CAVEATS

Part of git-extras package. GitLab-specific functionality. GitHub equivalent is git pr.

HISTORY

git mr is part of git-extras, providing GitLab merge request checkout similar to git pr for GitHub pull requests.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community