Skip to content

Automate local sync of all your github organization's repositories

License

Notifications You must be signed in to change notification settings

lorenzobaronio22/github-org-repo-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation of Mirror/Sync Github Organization Repos locally

Mirror/Sync Github Organization Repos locally original recources link

Quick start

  • 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

scripts details

clone.sh

  • 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/

pull.sh

  • find all git repos root folders contained in subfolder repos/
  • for each repo exec pull command

About

Automate local sync of all your github organization's repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published