GitCR
A dead simple script for bulk creation and deletion of GitHub repositories
Check out the blog related to this project: 7 things I learnt from a script for repository creation.
Functionalities
- Bulk create repositories from a template
- Revert creation
Instructions to run
Pre-requisites
- Docker, or a linux based system with curl and jq installed.
- Github personal access token with write and delete permissions.
- A template repository.
Setup
You'll need 2 things to get started:
-
A file called
.env
with the following variables. See the sample. -
The second thing that is needed is a
repos.txt
file with the name of the repositories that you want to create. The number of repositories can be anywhere between 1 to 5000, due to the rate limitation of the GitHub API. eg:
repo-1
repo-2
repo-3
...
repo-5000
See a sample here
Execution
To run the scripts on any platform, replace {PATH}
…