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

If you will use this command again gitlab-clone will just pull the updated to the existing repos, and will download new repos from the group.

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.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

gitlab_clone-1.1.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: gitlab-clone-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.50.0 CPython/3.8.5

File hashes

Hashes for gitlab-clone-1.1.0.tar.gz
Algorithm Hash digest
SHA256 08013675002e68a8f985f63ea1701009f2ab166509211fc7fe80bc742f60498c
MD5 819f9afadcd41ad8f527657d63104236
BLAKE2b-256 316c592f4afc809076bcc6749e5e9c7899e565c36ef1827a8cdcbfb9ebebb920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitlab_clone-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.50.0 CPython/3.8.5

File hashes

Hashes for gitlab_clone-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d97fbe0c042b27f988b81e757c4b1070f18c61ef15e511a54dc14de0e3b50a6
MD5 2d8e132b04f152a94a70b14e27b89c31
BLAKE2b-256 d84202324da1e7cfb9ec964900f98027ef09d40b6195634d6bd12a761ddd1740

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