blob: eb215fa9a6fc6bc97e9e13e5846b4d2ef14efdde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
### gitlab-shell: ssh access and repository management
#### Code status
* [](http://ci.gitlab.org/projects/4?ref=master)
* [](https://travis-ci.org/gitlabhq/gitlab-shell)
* [](https://codeclimate.com/github/gitlabhq/gitlab-shell)
* [](https://coveralls.io/r/gitlabhq/gitlab-shell)
__Requires ruby 1.9+__
### Setup
./bin/install
### Check
./bin/check
### Repos:
Add repo
./bin/gitlab-projects add-project gitlab/gitlab-ci.git
Remove repo
./bin/gitlab-projects rm-project gitlab/gitlab-ci.git
Import repo
./bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git
Fork repo
./bin/gitlab-projects fork-project gitlab/gitlab-ci.git randx
Update HEAD
./bin/gitlab-projects update-head gitlab/gitlab-ci.git 3-2-stable
Create branch
./bin/gitlab-projects create-branch gitlab/gitlab-ci.git 3-2-stable master
Remove branch
./bin/gitlab-projects rm-branch gitlab/gitlab-ci.git 3-0-stable
Create tag
./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable
Remove tag
./bin/gitlab-projects rm-tag gitlab/gitlab-ci.git v3.0.0
### Keys:
Add key
./bin/gitlab-keys add-key key-782 "ssh-rsa AAAAx321..."
Remove key
./bin/gitlab-keys rm-key key-23 "ssh-rsa AAAAx321..."
Remove all keys from authorized_keys file
./bin/gitlab-keys clear
|