Skip to content

CLI tool to explore and clone GitHub public repositories

License

Notifications You must be signed in to change notification settings

gaarutyunov/gh-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-exporter

CLI tool for exporting GitHub repositories based on GitHub repositories search query

Usage

  1. Explore repositories to be exported later
Usage:
  gh_exporter search [flags]

Flags:
  -h, --help           help for search
  -o, --out string     Search results file (default "~/git-py/results.csv")
  -q, --query string   GItHub repos search query (default "q=language:python")
  1. Create export plan. This command uses bin packing algorithm to group repositories for further optimized cloning
Usage:
  gh_exporter plan [flags]

Flags:
  -c, --capacity uint   Repository group capacity (default 2147483648)
  -h, --help            help for plan
  -i, --in string       Search results input for planning (default "~/git-py/results.csv")
  -o, --out string      Plan file path (default "~/git-py/plan.csv")
  1. Export planned repositories
Usage:
    gh_exporter export [flags]

Flags:
  -c, --concurrency int   Cloning concurrency (default 10)
  -f, --file string       Plan file path (default "~/git-py/plan.csv")
  -h, --help              help for export
  -i, --identity string   SSH key path (default "~/.ssh/id_rsa")
  -o, --out string        Output directory (default "~/git-py/repos/python")
  -p, --pattern string    Cloning file name pattern (default "*.py")
  -s, --search string     Search results file path to determine total (default "~/git-py/results.csv")

About

CLI tool to explore and clone GitHub public repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published