Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej.certik@gmail.com>2016-08-23 22:02:16 +0300
committerOndřej Čertík <ondrej.certik@gmail.com>2016-08-23 22:02:16 +0300
commitd1ed0c76ec7e9ef4ec1ccff2756433997b3a2397 (patch)
tree1d34f6ebabde3c5ce946fa32e5f859d4a692b363 /doc/workflow/merge_requests.md
parentc2d0bb9b034fb11b352ae7336c0fe8a7bd4cba48 (diff)
Add new lines after backticks and colons
Diffstat (limited to 'doc/workflow/merge_requests.md')
-rw-r--r--doc/workflow/merge_requests.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/workflow/merge_requests.md b/doc/workflow/merge_requests.md
index 12ffa916a8f..adee26f0fe9 100644
--- a/doc/workflow/merge_requests.md
+++ b/doc/workflow/merge_requests.md
@@ -18,14 +18,18 @@ Please note that you need to have builds configured to enable this feature.
### By adding a git alias
Add the following alias to your `~/.gitconfig`:
+
```
[alias]
mr = !sh -c 'git fetch origin merge-requests/$1/head:mr-$1 && git checkout mr-$1' -
```
+
Now you can check out a particular merge request from any repository (it will use the `origin` remote) by:
+
```
$ git mr 5
```
+
This will fetch the merge request into a local `mr-5` branch and check it out.
### By modifying `.git/config` for a given repository