Tools for managing a Github organization
Sync an organization's Github repos to your local machine.
- Works with public repos and private repos that your Github account has access to.
- Assumes you are using SSH keys to connect to Github
pip install PyGithub
- Reference Link: https://pypi.org/project/PyGithub/
- Add Github access token and organization names list to the script
- Go to Github "Settings".
- Go to "Developer Settings".
- Go to "Personal access tokens".
- Click on "Generate new token" button.
- Add a note.
- Check the "read:org" option under "admin:org"
- Click on "Generate token" button.
- Copy the access token and paste in below code.
python sync_repos.py