{"id":19742024,"url":"https://github.com/ksindi/monoreaper","last_synced_at":"2025-04-30T06:30:50.617Z","repository":{"id":79908794,"uuid":"87743322","full_name":"ksindi/monoreaper","owner":"ksindi","description":":seedling: Create a monorepo by merging multiple github repositories","archived":false,"fork":false,"pushed_at":"2024-06-02T01:23:06.000Z","size":26,"stargazers_count":29,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T10:38:59.125Z","etag":null,"topics":["bash","github","monorepo","utility"],"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/ksindi.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}},"created_at":"2017-04-09T22:20:47.000Z","updated_at":"2024-06-02T01:23:09.000Z","dependencies_parsed_at":"2023-09-17T03:30:17.479Z","dependency_job_id":null,"html_url":"https://github.com/ksindi/monoreaper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksindi%2Fmonoreaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksindi%2Fmonoreaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksindi%2Fmonoreaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksindi%2Fmonoreaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksindi","download_url":"https://codeload.github.com/ksindi/monoreaper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251653967,"owners_count":21622230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash","github","monorepo","utility"],"created_at":"2024-11-12T01:28:48.960Z","updated_at":"2025-04-30T06:30:50.370Z","avatar_url":"https://github.com/ksindi.png","language":"Shell","readme":"# MonoReaper\n\nMerge multiple GitHub repositories into a monorepo while preserving commit history. Each repo will live as a subdirectory. **Currently only works in Linux**.\n\nFeatures:\n  - Merge multiple repos while keeping full history and commit hashes.\n  - Specify branches of each repo to merge.\n  - Migrate repos into existing monorepo.\n\nRequirements:\n  - git version 2.9+.\n\n## Usage\n\n```bash\nexport MONOREPO_NAME=monorepo  # defaults to monorepo\ngit clone git@github.com:ksindi/monoreaper.git \u0026\u0026 cd monoreaper/\nchmod +x monoreaper.sh\nbash monoreaper.sh owner/repo0 owner/repo1\n# you can specify another default branch via `owner/repo0/some-branch`.\n```\n\nThe above script will create a `monorepo` directory with a README.md file and subdirectores `repo0` and `repo1`. Note only the default branches of each repo will be included.\n\nIf you now want to add the monorepo to GitHub:\n\n```bash\ncd monorepo/\ngit remote add origin git@github.com:owner/monorepo\ngit push -f origin master\n```\n\n### Merging with existing monorepos\n\nIf you already have a monorepo and want to merge other repos into it,\nall you have to do is include a `MONOREPO_DIR` env variable:\n\n```bash\nMONOREPO_DIR=path/to/my/monorepo bash monoreaper.sh owner/repo0 owner/repo1\n```\n\nNote that the `MONOREPO_DIR` must have `master` as default branch.\n\n\n## Why monorepos?\n\n- Streamlines ops logic. The overhead of setting up pipelines and deployments is cumbersome.\n- Shared codebase introduces shared ownership, naming and style.\n- Dependencies across services are easier to manage.\n- Searching code across multiple repos is a hassle.\n- Lots of great tools that take advantage of monorepos. See [awesome-monorepo](https://github.com/korfuri/awesome-monorepo).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksindi%2Fmonoreaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksindi%2Fmonoreaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksindi%2Fmonoreaper/lists"}