Skip to content

mahdi-malv/getgitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab clone

Simple script to clone all gitlab projects

image

Prerequisites

  • Python3
  • Pip

python refers to Python and python -m pip refers to Pip. Consider changing if you have python3 or pip or pip3

Download the dependencies:

python -m pip install -r requirements.txt

Usage

Download the script

python getgitlab.py [-u USERNAME] [-g GROUP] -t TOKEN [-p] [--http]

# example
python getgitlab.py -u my_user -t sth -p # print all 
repos of my_user
python getgitlab.py --group my_group --token sth # clone all repos of my_group
Option Desc
-u, --username USERNAME Gitlab user name
-g, --group GROUP Gitlab group namm
-t, --access-token TOKEN Your account Personal access token
--http [Optional] Use HTTPS repo links or SSH (For Https you need user pass each time)
-p,--print [Optional] No cloning. Just print them

FAQ

Stock at adding fingerprint and ...: You may want to clone one repo manually and then try the script.

About

Get all gitlab repositories with one command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages