Skip to content

Replacement for gitolite. This repo is a mirror of https://gitlab.com/gitlab-org/gitlab-shell/

License

gitlabhq/gitlab-shell

Repository files navigation

gitlab-shell: ssh access and repository management

Code status

  • CI
  • Build Status
  • Code Climate
  • Coverage Status

Requires ruby 1.9+

Getting Started

#sudo adduser --gecos 'GitLab' git # create git user sudo su - git # Clone gitlab shell git clone https://github.com/advatar/gitlab-shell.git cd gitlab-shell # switch to right version git checkout v1.7.8 cp config.yml.example config.yml # Edit config and replace gitlab_url # with something like 'http://domain.com/' nano config.yml 

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 

About

Replacement for gitolite. This repo is a mirror of https://gitlab.com/gitlab-org/gitlab-shell/

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 119

Languages