Commit fe10f37199a04b92dd5bf2b713d49849491f9dfc
1 parent
c7a55309
Exists in
spb-stable
and in
2 other branches
Add default arguments, name gitlab repo gl, suggest dotfile repo.
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
doc/release/master.md
... | ... | @@ -4,28 +4,28 @@ Distribution to other repo's is done by the lead developer if there is no rush. |
4 | 4 | This happens a few times per workday on average. |
5 | 5 | If a GitLab B.V. person wants to do it here are the instructions. |
6 | 6 | |
7 | -## Add this to `.bashrc` | |
7 | +## Add this to `.bashrc` or [your dotfiles](https://github.com/dosire/dotfiles/commit/52803ce3ac60d57632164b7713ff0041e86fa26c) | |
8 | 8 | |
9 | 9 | ```bash |
10 | 10 | gpa () |
11 | 11 | { |
12 | - git push origin $1 && git push gh $1 && git push public $1 | |
12 | + git push origin ${1:-master} && git push gh ${1:-master} && git push gl ${1:-master} | |
13 | 13 | } |
14 | 14 | ``` |
15 | 15 | |
16 | 16 | ## Then add remotes to your local repo |
17 | 17 | |
18 | 18 | ```bash |
19 | -cd myrepo | |
19 | +cd my-gitlab-ce-repo | |
20 | 20 | |
21 | 21 | git remote add origin git@dev.gitlab.org:gitlab/gitlabhq.git |
22 | -git remote add gh git@github.com:gitlabhq/gitlabhq.git | |
23 | -git remote add public git@gitlab.com:gitlab-org/gitlab-ce.git | |
22 | +git remote add gh git@github.com:gitlabhq/gitlabhq.git | |
23 | +git remote add gl git@gitlab.com:gitlab-org/gitlab-ce.git | |
24 | 24 | ``` |
25 | 25 | |
26 | 26 | ## Push to all remotes |
27 | 27 | |
28 | 28 | ```bash |
29 | -gpa master | |
29 | +gpa | |
30 | 30 | ``` |
31 | 31 | ... | ... |