diff options
author | dosire <sytses@gmail.com> | 2014-05-26 17:54:06 +0400 |
---|---|---|
committer | dosire <sytses@gmail.com> | 2014-05-26 17:54:06 +0400 |
commit | fe10f37199a04b92dd5bf2b713d49849491f9dfc (patch) | |
tree | d84dd08e6a2c2f1d2eeae6f0e28daef2c9ede369 | |
parent | c7a55309308aeffb65ac79dbe4696fa87a0e9f7c (diff) |
Add default arguments, name gitlab repo gl, suggest dotfile repo.
-rw-r--r-- | doc/release/master.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/release/master.md b/doc/release/master.md index a3ad6e3886f..bed5692d0a2 100644 --- a/doc/release/master.md +++ b/doc/release/master.md @@ -4,28 +4,28 @@ Distribution to other repo's is done by the lead developer if there is no rush. This happens a few times per workday on average. If a GitLab B.V. person wants to do it here are the instructions. -## Add this to `.bashrc` +## Add this to `.bashrc` or [your dotfiles](https://github.com/dosire/dotfiles/commit/52803ce3ac60d57632164b7713ff0041e86fa26c) ```bash gpa () { - git push origin $1 && git push gh $1 && git push public $1 + git push origin ${1:-master} && git push gh ${1:-master} && git push gl ${1:-master} } ``` ## Then add remotes to your local repo ```bash -cd myrepo +cd my-gitlab-ce-repo git remote add origin git@dev.gitlab.org:gitlab/gitlabhq.git -git remote add gh git@github.com:gitlabhq/gitlabhq.git -git remote add public git@gitlab.com:gitlab-org/gitlab-ce.git +git remote add gh git@github.com:gitlabhq/gitlabhq.git +git remote add gl git@gitlab.com:gitlab-org/gitlab-ce.git ``` ## Push to all remotes ```bash -gpa master +gpa ``` |