1GIT-MR(1) Git Extras GIT-MR(1)
2
3
4
6 git-mr - Checks out a merge request locally
7
9 git-mr <number> [<remote>]
10 git-mr <url>
11 git-mr clean
12
14 Fetches merge request head by its number or URl and check it out in a
15 branch named with merge request number.
16
18 <remote>
19
20 The name of the remote to fetch from. Defaults to origin.
21
22 <url>
23
24 GitLab merge request URL in the format https://gitlab.tld/owner/reposi‐
25 tory/merge_requests/453.
26
28 This checks out merge request !51 from remote origin to branch mr/51.
29
30
31
32 $ git mr 51
33 From gitlab.com:owner/repository
34 * [new ref] refs/merge-requests/51/head -> mr/51
35 Switched to branch ´mr/51´
36
37
38
40 Written by Étienne BERSAC bersace03@gmail.com from git-pr(1).
41
43 <https://github.com/tj/git-extras/issues>
44
46 <https://github.com/tj/git-extras>
47
48
49
50 April 2018 GIT-MR(1)