diff options
author | Ondřej Čertík <ondrej.certik@gmail.com> | 2016-08-23 13:02:16 -0600 |
---|---|---|
committer | Ondřej Čertík <ondrej.certik@gmail.com> | 2016-08-23 13:02:16 -0600 |
commit | d1ed0c76ec7e9ef4ec1ccff2756433997b3a2397 (patch) | |
tree | 1d34f6ebabde3c5ce946fa32e5f859d4a692b363 | |
parent | c2d0bb9b034fb11b352ae7336c0fe8a7bd4cba48 (diff) | |
download | gitlab-ce-d1ed0c76ec7e9ef4ec1ccff2756433997b3a2397.tar.gz |
Add new lines after backticks and colons
-rw-r--r-- | doc/workflow/merge_requests.md | 4 |
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 |