Download the PHP package operations/git-split without Composer
On this page you can find all versions of the php package operations/git-split. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download operations/git-split
More information about operations/git-split
Files in operations/git-split
Package git-split
Short Description Adds composer git:split composer command for easy splitting of a git repository into many others.
License GPL-2.0-or-later
Homepage https://drupal.org/project/operations
Informations about the package git-split
GitSplit Component
The GitSplit component provides commands to split a monorepo using the splitsh-lite script and other tools.
Usage
The first implementation of GitSplit is DevShop itself. Look to OpenDevShop's code for a usage example:
-
Add the package to your project's
composer.json
:See https://github.com/opendevshop/devshop/blob/1.x/composer.json#L72
-
Import a legacy repo into a subfolder:
If a component repo already exists, you can merge it in with the git subtree command:
For example, when we merged in the "devmaster" install profile from Drupal.org:
See https://github.com/opendevshop/devshop/tree/1.x/devmaster
-
Add
extra.git-splits
Add the Secondary Repository information to the config.git-split.repos section of the main devshop/composer.json file.
-
Run the command
composer git:split
every time there is new code.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:https://github.com/opendevshop/devshop/blob/1.x/.github/workflows/git.yml#L64
Resources
Credits
splitsh-lite is a third party shell script installed when this component is used.
Find sources and license at https://github.com/splitsh/lite.
All versions of git-split with dependencies
composer-plugin-api Version ^1.0 || ^2.0