{"id":51134678,"url":"https://github.com/frobware/github-org-clone","last_synced_at":"2026-06-25T16:02:33.092Z","repository":{"id":349148294,"uuid":"1130416199","full_name":"frobware/github-org-clone","owner":"frobware","description":"Clone all repositories from a GitHub organisation","archived":false,"fork":false,"pushed_at":"2026-01-08T13:32:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-30T12:23:08.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frobware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T13:28:34.000Z","updated_at":"2026-01-08T13:33:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/frobware/github-org-clone","commit_stats":null,"previous_names":["frobware/github-org-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frobware/github-org-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fgithub-org-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fgithub-org-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fgithub-org-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fgithub-org-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frobware","download_url":"https://codeload.github.com/frobware/github-org-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fgithub-org-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34782137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-25T16:02:32.487Z","updated_at":"2026-06-25T16:02:33.088Z","avatar_url":"https://github.com/frobware.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-org-clone\n\nClone all repositories from a GitHub organisation with a single command.\n\n## Quick start\n\n```bash\n./github-org-clone openshift | sh\n```\n\nThis fetches the repo list from GitHub, then outputs git commands to stdout. Pipe to `sh` to run them.\n\nBy default:\n- Clones to `~/src/github.com/\u003corg\u003e/\u003crepo\u003e`\n- Only clones public repositories\n- Only clones source repositories (repos the org owns, not forks)\n- Skips empty repositories\n\nThe default path follows the convention `~/src/\u003cforge\u003e/\u003corg\u003e/\u003crepo\u003e`, so you can organise clones from different forges (github.com, gitlab.com, etc.) in one place.\n\n## Trying it out\n\nTo test without writing to `~/src`, use a temporary directory:\n\n```bash\n./github-org-clone --basedir /tmp/test --shallow frobware | sh\n```\n\nThis clones to `/tmp/test/github.com/frobware/...` instead. The `--shallow` flag makes it faster.\n\n## Keeping repos up to date\n\nRun the same command again:\n\n```bash\n./github-org-clone openshift | sh\n```\n\nIf a repo already exists locally, it outputs a `git fetch` instead of `git clone`. Running periodically keeps everything in sync.\n\n## Parallel cloning\n\nFor large organisations, clone in parallel:\n\n```bash\n./github-org-clone openshift | parallel --bar --eta -j 8\n```\n\nThe `--bar` flag shows a progress bar, `--eta` shows estimated time remaining.\n\nThe included `dop` wrapper provides `--bar` and `--eta` by default, plus per-job logging and error summaries:\n\n```bash\n./github-org-clone openshift | ./dop -j 8\n```\n\n## Including forks\n\nBy default, only source repos are cloned. To clone forks instead:\n\n```bash\n./github-org-clone --forks openshift | sh\n```\n\n## Listing repositories\n\nSee what's in an org without cloning:\n\n```bash\n./github-org-clone --list openshift\n```\n\nOutput shows repo name, parent (if it's a fork), and archived status:\n\n```\nrelease-tests       -                      -\nappliance           -                      -\nsome-fork           upstream/original      -\nold-project         -                      archived\n```\n\nFor scripting, get JSON:\n\n```bash\n./github-org-clone --list --json openshift\n```\n\n## Cloning specific repos\n\nClone only certain repos from an org:\n\n```bash\n./github-org-clone openshift release api console | sh\n```\n\n## Options\n\n```\nFiltering:\n  -s, --source        Only source repos, not forks (default)\n  -f, --forks         Only forked repos\n  -a, --no-archived   Skip archived repos\n  --private           Also include private repos (default: public only)\n\nListing:\n  -l, --list          List repos and exit\n  --json              JSON output (with --list)\n\nCloning:\n  -b, --basedir DIR   Base directory (default: ~/src, or CLONE_BASEDIR env var)\n  --shallow           Shallow clones (--depth 1)\n\nOther:\n  -h, --help          Show help\n  -v, --version       Show version\n```\n\n## More examples\n\nClone to a different directory:\n\n```bash\n./github-org-clone --basedir /tmp/test openshift | sh\n```\n\nShallow clone for a quick local copy:\n\n```bash\n./github-org-clone --shallow openshift | sh\n```\n\nPreview what would happen:\n\n```bash\n./github-org-clone openshift | head\n```\n\nSkip archived repos:\n\n```bash\n./github-org-clone --no-archived openshift | sh\n```\n\n## Requirements\n\n- `gh` (GitHub CLI) - authenticated\n- `jq`\n- `git`\n- `parallel` or `dop` (optional, for parallel execution)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fgithub-org-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrobware%2Fgithub-org-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fgithub-org-clone/lists"}