-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lpmatos
committed
Jul 28, 2020
1 parent
4fbbf6f
commit 96f122e
Showing
3 changed files
with
11 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,14 @@ | ||
**GitLabRC** (GitLab Recursive Clone) | ||
# Gitlab Cloner | ||
|
||
This Python CLI is a very simple tool that help you to clone all projects inside a [gitlab](http://www.gitlab.com) group. | ||
This is a program that clones all git repositories of a user from a | ||
Gitlab server. | ||
|
||
This project is inspired from [gitup](https://github.com/ezbz/gitlabber) and has parts taken from there. | ||
This requires the user's API access token. | ||
|
||
### Usage | ||
## Usage | ||
|
||
usage: gitlabcr [-h] [-u <url>] [-t <token>] [-n <namespace>] [-p <path>] [--disable-root] [--version] | ||
Use the Gitlab Server's URL as the first positional argument, the second | ||
one should be the API key. | ||
|
||
Gitlabrc - clones all projects inside namespaces | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
-u <url>, --url <url> | ||
base URL of GitLab instance | ||
-t <token>, --token <token> | ||
token GitLab API | ||
-n <namespace>, --namespace <namespace> | ||
namespace in GitLab to clone all projects | ||
-p <path>, --path <path> | ||
destination path for cloned projects | ||
--disable-root do not create root namepace folder in path | ||
--version show version | ||
|
||
### Exemples | ||
|
||
* Clone all repositories inside specific namespace in current directory: | ||
|
||
gitlabrc -u $GITLAB_URL -t $GITLAB_TOKEN -n msp/charts | ||
|
||
* Clone all repositories inside specific namespace in specific directory: | ||
|
||
gitlabrc -u $GITLAB_URL -t $GITLAB_TOKEN -n msp/charts -p /home/ubuntu | ||
|
||
* Getting repositories with specific git clone method: | ||
|
||
gitlabrc -u $GITLAB_URL -t $GITLAB_TOKEN -n msp/charts -p /home/ubuntu -m http | ||
|
||
* Show all repositories without clone/fetch: | ||
|
||
gitlabrc -u $GITLAB_URL -t $GITLAB_TOKEN -n msp/charts --dry-run | ||
You can also specify a destination directory for the repositories | ||
with the ```-d``` argument. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
VERSION = (0, 0, 17) | ||
VERSION = (0, 0, 1) | ||
|
||
__version__ = ".".join(map(str, VERSION)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters