BigW Consortium Gitlab

master.md 2.01 KB
Newer Older
dosire committed
1 2
# How to push GitLab CE master branch to all remotes.

3 4
The source code of GitLab is available on multiple servers (with GitLab.com as the canonical source).
Synchronization between the repo's is done by the lead developer if there is no rush.
dosire committed
5
This happens a few times per workday on average.
6 7
If somebody else with access to all repo's wants to do it the instructions are below.
This is just to distribute changes, not to make them.
dosire committed
8

9
## Add this to `.bashrc` or [your dotfiles](https://github.com/dosire/dotfiles/commit/52803ce3ac60d57632164b7713ff0041e86fa26c)
dosire committed
10 11 12 13

```bash
gpa ()
{
14
  git push origin ${1:-master} && git push gh ${1:-master} && git push gl ${1:-master}
dosire committed
15 16 17
}
```

dosire committed
18
## Then add remotes to your local repo
dosire committed
19 20

```bash
21
cd my-gitlab-ce-repo
dosire committed
22 23

git remote add origin git@dev.gitlab.org:gitlab/gitlabhq.git
24 25
git remote add gh git@github.com:gitlabhq/gitlabhq.git
git remote add gl git@gitlab.com:gitlab-org/gitlab-ce.git
dosire committed
26 27
```

dosire committed
28
## Push to all remotes
dosire committed
29 30

```bash
31
gpa
dosire committed
32 33
```

34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
# Yanking packages from packages.gitlab.com

In case something went wrong with the release and there is a need to remove the packages you can yank the packages by following the
procedure described in [package cloud documentation](https://packagecloud.io/docs#yank_pkg).

You need to have:

1. `package_cloud` gem installed (sudo gem install package_cloud)
1. Email and password for packages.gitlab.com
1. Make sure that you are supplying the url to packages.gitlab.com (default is packagecloud.io)

Example of yanking a package:

```bash
package_cloud yank --url https://packages.gitlab.com gitlab/gitlab-ce/el/6 gitlab-ce-7.10.2~omnibus-1.x86_64.rpm
```

If you are attempting this for the first time the output will look something like:

```bash
Looking for repository at gitlab/gitlab-ce... No config file exists at /Users/marin/.packagecloud. Login to create one.
Email:
marin@gitlab.com
Password:

Got your token. Writing a config file to /Users/marin/.packagecloud... success!
success!
Attempting to yank package at gitlab/gitlab-ce/el/6/gitlab-ce-7.10.2~omnibus-1.x86_64.rpm...done!
```