Mirror/Sync Github Organization Repos locally original recources link
- create dest directory repos/:
mkdir repos
- create .env file containing the followiong variables:
- USERNAME - github username
- PASSWORD - github password or access token
- ORG - github organization name
- deploy the containers:
docker compose up -d
- fetch first 200 repos of the organization specified in $ORG environment variables
- authenticate to github using $USERNAME and $PASSWORD environment variables
- clone each repo into subfolder repos/
- find all git repos root folders contained in subfolder repos/
- for each repo exec pull command