{"id":21702891,"url":"https://github.com/operations-project/git-split","last_synced_at":"2026-01-27T07:05:27.691Z","repository":{"id":178387609,"uuid":"657127638","full_name":"operations-project/git-split","owner":"operations-project","description":"Composer package for simple git splitting.","archived":false,"fork":false,"pushed_at":"2024-09-11T16:17:53.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"2.x","last_synced_at":"2025-05-30T12:49:13.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/operations-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["jonpugh"],"patreon":"jonpugh","open_collective":"drupal-operations","custom":["https://thinkdrop.net"]}},"created_at":"2023-06-22T11:30:25.000Z","updated_at":"2023-06-23T00:43:07.000Z","dependencies_parsed_at":"2024-05-03T20:28:02.229Z","dependency_job_id":"3d308b5d-bdd2-4454-a67d-6c676c8fe1a6","html_url":"https://github.com/operations-project/git-split","commit_stats":null,"previous_names":["drupal-operations/git-split","operations-platform/git-split","operations-project/git-split"],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/operations-project/git-split","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fgit-split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fgit-split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fgit-split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fgit-split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operations-project","download_url":"https://codeload.github.com/operations-project/git-split/tar.gz/refs/heads/2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fgit-split/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28807172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T06:25:51.065Z","status":"ssl_error","status_checked_at":"2026-01-27T06:25:50.640Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-25T21:21:58.416Z","updated_at":"2026-01-27T07:05:27.649Z","avatar_url":"https://github.com/operations-project.png","language":"PHP","funding_links":["https://github.com/sponsors/jonpugh","https://patreon.com/jonpugh","https://opencollective.com/drupal-operations","https://thinkdrop.net"],"categories":[],"sub_categories":[],"readme":"GitSplit Component\n==================\n\nThe GitSplit component provides commands to split a monorepo using the [splitsh-lite](https://github.com/splitsh/lite) \nscript and other tools.\n\nUsage\n-----\n\nThe first implementation of GitSplit is DevShop itself. Look to OpenDevShop's code for a usage example:\n\n1. Add the package to your project's `composer.json`: \n\n    ```\n    composer require devshop/git-split --dev  \n    ```\n   \n   See https://github.com/opendevshop/devshop/blob/1.x/composer.json#L72\n\n2. Import a legacy repo into a subfolder: \n\n    If a component repo already exists, you can merge it in with the git subtree command:\n    \n    ```\n    git subtree add --prefix=$PATH_IN_REPO $GIT_URL $BRANCH\n    ```\n    \n    For example, when we merged in the \"devmaster\" install profile from Drupal.org:\n    \n    ```\n    git subtree add --prefix=devmaster https://git.drupalcode.org/project/devmaster.git 7.x-1.x\n    ```\n   \n   See https://github.com/opendevshop/devshop/tree/1.x/devmaster\n\n3. Add `extra.git-splits` \n\n    Add the Secondary Repository information to the config.git-split.repos section of the main devshop/composer.json file.\n\n    ```json\n    \"extra\": {\n        \"git-split\": {\n            \"repos\": {\n                \"devmaster\": \"git@github.com:opendevshop/devmaster.git\"\n            }\n        }\n    }\n    ```\n\n4. Run the command `composer git:split` every time there is new code.\n\n    See the DevShop GitHub Action \"git.yml\" file for an example on running `composer git:split` to push code to multiple remotes, including different github organizations and drupal.org using SSH keys:\n    \n    https://github.com/opendevshop/devshop/blob/1.x/.github/workflows/git.yml#L64\n\nResources\n---------\n\n  * [Documentation](https://github.com/devshop-packages/git-split/blob/develop/README.md)\n  * [Contributing](https://github.com/opendevshop/devshop/blob/develop/docs/DEVELOPING.md)\n  * [Report issues](https://github.com/opendevshop/devshop/issues) and\n    [send Pull Requests](https://github.com/opendevshop/devshop/pulls)\n    in the [main DevShop repository](https://github.com/opendevshop/devshop)\n\nCredits\n-------\n\n[splitsh-lite](https://github.com/splitsh/lite) is a third party shell script installed when this component is used.\n \n Find sources and license at https://github.com/splitsh/lite.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperations-project%2Fgit-split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperations-project%2Fgit-split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperations-project%2Fgit-split/lists"}