A small tool written in JavaScript to clone all the repositories in a GitLab group.
$ git clone https://github.com/colbin8r/gitlab-clone-group.git
$ cd gitlab-clone-group
$ npm install
View all the usage options:
$ node index.js --help
Simple usage:
$ node index.js --group MyGroupName --token YourGitLabToken
Use a custom GitLab server:
$ node index.js --group MyGroupName --token YourGitLabToken --url http://mygitlabserver.com:12345/
Clone via SSH:
$ node index.js --group MyGroupName --token YourGitLabToken --method ssh
Clone into a folder named myclonedrepos
:
$ node index.js --group MyGroupName --token YourGitLabToken --folder myclonedrepos