Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 717 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 717 Bytes

Blinchik-git

Handy Git Automations

Go Report Card

Cloning Gitlab Projects

This command allow you to clone all Projects under a given Gitlab Group and all of it's Subgroubs.

The Gitlab private access token should be set as environment variable "GITLAB_PRIVATE_TOKEN"

# Build and move to user available scripts

cd cmd/cloneall
go build
mv cloneall /usr/local/bin/

# Execute by given Gitlab flag "gl", Group ID (i.e. "10101010") 
# and the path to the private key relative to user's home path (i.e. "/.ssh/id_rsa")

cloneall -gl "<Gitlab Group ID>" "<Path to Private Key>"