From 75e90cb45660bd9861a047d0cd4f630ca2e71dd3 Mon Sep 17 00:00:00 2001 From: dosire Date: Mon, 26 May 2014 15:38:18 +0200 Subject: [PATCH 1/3] Push to all remotes doc. --- doc/release/README.md | 8 ++++++-- doc/release/master.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 doc/release/master.md diff --git a/doc/release/README.md b/doc/release/README.md index 22510be3f18..d53720acbd4 100644 --- a/doc/release/README.md +++ b/doc/release/README.md @@ -1,2 +1,6 @@ -+ [Monthly](monthly.md) -+ [Security](security.md) +GitLab has the following updates: + ++ [Monthly release](monthly.md), every month on the 22nd. ++ [Patch release](patch.md), if there are serious regressions. ++ [Security](security.md), for security problems. ++ [Master](master.md), update process for the master branch. diff --git a/doc/release/master.md b/doc/release/master.md new file mode 100644 index 00000000000..aa7c854d074 --- /dev/null +++ b/doc/release/master.md @@ -0,0 +1,29 @@ +# How to push GitLab CE master branch to all remotes. + +Distribution to other repo's is done by Dmitriy if there is no rush. If a GitLab B.V. person wants to do it here are the instructions. + +## Add this to `.bashrc` + +```bash +gpa () +{ + git push origin $1 && git push gh $1 && git push public $1 +} +``` + +## Then add remotes to your local repo + +```bash +cd myrepo + +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 +``` + +## Pushto all remotes + +```bash +gpa master +``` + From c7a55309308aeffb65ac79dbe4696fa87a0e9f7c Mon Sep 17 00:00:00 2001 From: dosire Date: Mon, 26 May 2014 15:40:44 +0200 Subject: [PATCH 2/3] Small layout improvements. --- doc/release/master.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/release/master.md b/doc/release/master.md index aa7c854d074..a3ad6e3886f 100644 --- a/doc/release/master.md +++ b/doc/release/master.md @@ -1,6 +1,8 @@ # How to push GitLab CE master branch to all remotes. -Distribution to other repo's is done by Dmitriy if there is no rush. If a GitLab B.V. person wants to do it here are the instructions. +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` @@ -11,7 +13,7 @@ gpa () } ``` -## Then add remotes to your local repo +## Then add remotes to your local repo ```bash cd myrepo @@ -21,7 +23,7 @@ git remote add gh git@github.com:gitlabhq/gitlabhq.git git remote add public git@gitlab.com:gitlab-org/gitlab-ce.git ``` -## Pushto all remotes +## Push to all remotes ```bash gpa master From fe10f37199a04b92dd5bf2b713d49849491f9dfc Mon Sep 17 00:00:00 2001 From: dosire Date: Mon, 26 May 2014 15:54:06 +0200 Subject: [PATCH 3/3] Add default arguments, name gitlab repo gl, suggest dotfile repo. --- doc/release/master.md | 12 ++++++------ 1 file 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 ```