https://github.com/laserphaser/gitlab-group-clone
Tool for recursive cloning whole gitlab group tree
https://github.com/laserphaser/gitlab-group-clone
gitlab gitlab-api
Last synced: about 2 months ago
JSON representation
Tool for recursive cloning whole gitlab group tree
- Host: GitHub
- URL: https://github.com/laserphaser/gitlab-group-clone
- Owner: LaserPhaser
- License: mit
- Created: 2020-01-15T08:42:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:38:08.000Z (almost 2 years ago)
- Last Synced: 2025-03-09T17:03:09.465Z (about 2 months ago)
- Topics: gitlab, gitlab-api
- Language: Python
- Size: 206 KB
- Stars: 16
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=================
gitlab-clone
=================Tool for easy cloning whole gitlab structure to your local machine.
* Free software: MIT license
Requirements
------------* Requests
* Python >= 3.6Installation
------------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
--branch branch Branch to clone in all repos [by default master]
--http Clone via http instead of ssh
--gitlab-url gitlab Gitlab address [by default gitlab.com]
--token token Gitlab TokenExample
-------$ 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:
.. image:: https://github.com/ArseniyAntonov/gitlab-group-clone/raw/master/img/tree.png
>>> tree
.
└── lmaolmaolmao
└── subgroup1
└── subgroup2
└── subgroup3If 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.
.. _`pip`: https://pypi.python.org/pypi/pip/