{"id":50483944,"url":"https://github.com/metaory/forks-hollow","last_synced_at":"2026-06-01T20:02:42.212Z","repository":{"id":361788720,"uuid":"1255834350","full_name":"metaory/forks-hollow","owner":"metaory","description":"Keep your fork tree layout -  Drop the weight - Restore when you need the code","archived":false,"fork":false,"pushed_at":"2026-06-01T08:09:44.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-01T10:09:16.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/metaory.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-06-01T08:02:07.000Z","updated_at":"2026-06-01T08:09:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/metaory/forks-hollow","commit_stats":null,"previous_names":["metaory/forks-hollow"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/metaory/forks-hollow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fforks-hollow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fforks-hollow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fforks-hollow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fforks-hollow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/forks-hollow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fforks-hollow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33790933,"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-01T02:00:06.963Z","response_time":115,"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-01T20:02:39.273Z","updated_at":"2026-06-01T20:02:42.200Z","avatar_url":"https://github.com/metaory.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eforks-hollow\u003c/h1\u003e\n    \u003cimg src=\".github/assets/logo.png\" alt=\"demo\" height=\"128\" /\u003e\n    \u003cp\u003e\n        Keep your fork tree layout\n        \u003cbr\u003e\n        Drop the weight\n        \u003cbr\u003e\n        Restore when you need the code\n    \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Why\n\nI kept **500+ cloned repositories** in a hand-built tree: top-level buckets like `+UI`, `+ZSH`, `+DOC`, with nested `+`-prefixed categories inside (e.g. `+UI/+UI-LIB/...`). Each leaf was a normal git clone. The layout was meaningful; the disk use was not **gigabytes** for repos I rarely touch.\n\nI still wanted the same paths, remotes, and README context. I did not want full checkouts sitting on disk all the time.\n\n## What it does\n\n`Hollow` a clone forest into a separate directory:\n\n- Same directory structure as the source tree\n- Each repo keeps `.git` and `README.md` only; everything else is stripped\n- Result is typically a few megabytes instead of gigabytes\n\nTwo CLI tools:\n\n\n| Command         | Role                                                                  |\n| --------------- | --------------------------------------------------------------------- |\n| `hollow-index`  | Scan nested clones, write hollow copies to `-o`                       |\n| `hollow-unpack` | Walk hollow repos, `fetch` + checkout latest default branch into `-o` |\n\n\n## Usage\n\n```bash\nhollow-index -i /path/to/full-clones -o /path/to/hollow\nhollow-unpack -i /path/to/hollow -o /path/to/restored\n```\n\nBoth take `-i` / `--input` and `-o` / `--output`. Structure is preserved end-to-end.\n\n## Roadmap\n\n- Selective unpack (one repo or subtree) instead of restoring everything in one run\n\n---\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fforks-hollow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fforks-hollow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fforks-hollow/lists"}