Skip to content

A simple Python 3 script to sync forks of a given organization

License

Notifications You must be signed in to change notification settings

imranansari/gh_sync_forks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Sync Forks

A Python 3 script to sync forks of a GitHub organization.

Usage

usage: gh_sync_forks.py [-h] [-c] [-r]
                        organization access_token target_directory

Sync forks of a GitHub organization

positional arguments:
  organization      a GitHub organization name from which forks will be synced
  access_token      a GitHub access token to work around default rate limit
  target_directory  a local directory in which repositories will be cloned

optional arguments:
  -h, --help        show this help message and exit
  -c, --clean       clean Git repository
  -r, --reset       reset Git repository

Dependencies

This project depends on requests Python package to query GitHub API.

Developers

Conda environment can be created as shown below.

conda create --no-default-packages -p .conda python=3.7
source activate .conda
conda install requests

Credits

Written by Christophe Bismuth, licensed under the The MIT License (MIT).

About

A simple Python 3 script to sync forks of a given organization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%