HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git mr — Check out GitLab merge requests locally. Part of `git-extras`. More information: <https://github.com

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrequestscligitlaboutmergecheckgit mr

Problem

How to use the git mr command: Check out GitLab merge requests locally. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-mr>.

Solution

git mr — Check out GitLab merge requests locally. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-mr>.

Check out a specific merge request:
git mr {{mr_number}}


Check out a merge request from a specific remote:
git mr {{mr_number}} {{remote}}


Checkout a merge request from its URL:
git mr {{url}}


Clean up old merge request branches:
git mr clean

Code Snippets

Check out a specific merge request

git mr {{mr_number}}

Check out a merge request from a specific remote

git mr {{mr_number}} {{remote}}

Checkout a merge request from its URL

git mr {{url}}

Clean up old merge request branches

git mr clean

Context

tldr-pages: common/git mr

Revisions (0)

No revisions yet.