Add new lines after backticks and colons
This commit is contained in:
parent
c2d0bb9b03
commit
d1ed0c76ec
1 changed files with 4 additions and 0 deletions
|
@ -18,14 +18,18 @@ Please note that you need to have builds configured to enable this feature.
|
||||||
### By adding a git alias
|
### By adding a git alias
|
||||||
|
|
||||||
Add the following alias to your `~/.gitconfig`:
|
Add the following alias to your `~/.gitconfig`:
|
||||||
|
|
||||||
```
|
```
|
||||||
[alias]
|
[alias]
|
||||||
mr = !sh -c 'git fetch origin merge-requests/$1/head:mr-$1 && git checkout mr-$1' -
|
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:
|
Now you can check out a particular merge request from any repository (it will use the `origin` remote) by:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git mr 5
|
$ git mr 5
|
||||||
```
|
```
|
||||||
|
|
||||||
This will fetch the merge request into a local `mr-5` branch and check it out.
|
This will fetch the merge request into a local `mr-5` branch and check it out.
|
||||||
|
|
||||||
### By modifying `.git/config` for a given repository
|
### By modifying `.git/config` for a given repository
|
||||||
|
|
Loading…
Reference in a new issue