Skip to main content

Gitlab tool for recursive clone

Project description

Tool for easy cloning whole gitlab structure to your local machine.

  • Free software: MIT license

Requirements

  • Requests

  • Python >= 3.6

Installation

You can install “gitlab-clone” via pip:

$ pip install gitlab-clone

Usage

>>> gitlab-clone:
  optional arguments:
  -h, --help           show this help message and exit
  --group_id group_id  Id of a group in gitlab
  --token token        Gitlab Token
  --branch branch      Branch to clone in all repos [by default master]
  --gitlab-url gitlab  Gitlab address [by default gitlab.com]

Example

$ gitlab-clone –group=123 –token=MySecretToken –gitlab-url=gitlab.organization.com

For example if you clone this group https://gitlab.com/lmaolmaolmao which id is 6849299

you will have absolutely the same structure locally:

https://github.com/ArseniyAntonov/gitlab-group-clone/raw/master/img/tree.png
>>> tree
   .
    └── lmaolmaolmao
        └── subgroup1
            └── subgroup2
                └── subgroup3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab-clone-1.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

gitlab_clone-1.0.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gitlab-clone-1.0.2.tar.gz.

File metadata

  • Download URL: gitlab-clone-1.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gitlab-clone-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a012d698d8f05577344f95b612b663094c9192c0d8acb3c96ccbd2551896da10
MD5 56eeb8ffc19bc99d6beaafda2d9c4f84
BLAKE2b-256 b3b904338b8423b42db2360bd10f6823e0cef77179098f70fa8e81c16071a82e

See more details on using hashes here.

File details

Details for the file gitlab_clone-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: gitlab_clone-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gitlab_clone-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30c10da83c556a20fc803cd303dfffe451aed0c863be26a5ac4ad1376f795fca
MD5 d18c73cdc00c5d9313d796e989e2ee2f
BLAKE2b-256 b033756bad3afe7704c5327fb5b4590a0becd702140c2137932525e8d2e6f37c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page