git-mr(1)

git-mr1

Checks out a merge request locally

Usage

git-mr <number> [<remote>]

git-mr <url>

git-mr clean

Overview

Fetches merge request head by its number or URl and check it out in a branch named with merge request number.

Options

<remote>

The name of the remote to fetch from. Defaults to origin.

<url>

GitLab merge request URL in the format https://gitlab.tld/owner/repository/merge_requests/453.

Examples

This checks out merge request !51 from remote origin to branch mr/51.

$ git mr 51
From gitlab.com:owner/repository
 * [new ref]         refs/merge-requests/51/head -> mr/51
Switched to branch 'mr/51'

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Written by Étienne BERSAC [email protected] from git-pr(1).

Reporting bugs

<https://github.com/tj/git-extras/issues>

From git-extras 7.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.