As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Select Git revision
22 results Searching

gitlab-shell

  • Open with
  • Download source code
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • Forked from Igor Drozdov / Gitlab Shell
    2796 commits behind, 6 commits ahead of the upstream repository.
    user avatar
    Dmitriy Zaporozhets authored
    Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
    173639ee
    History

    gitlab-shell: ssh access and repository management

    GitLab Shell is an application that allows you to execute git commands and provide ssh access to git repositories. It is not a Unix shell nor a replacement for Bash or Zsh.

    Code status

    CI Build Status Code Climate Coverage Status

    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:

    # Default timeout is 2 minutes
    ./bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git 
    
    # Override timeout in seconds
    ./bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git 90

    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 (lightweight & annotated):

    ./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 
    ./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 'annotated message goes here'

    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