Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expmigrationreposplit

Split the migrations folder of the installation's git checkout into a repository of its own with its history (every commit that changed it, same authors, dates and messages); a dry run unless --apply.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expmigrationreposplit.md

On this page

exp:expmigrationreposplit

Split the migrations folder of the installation's git checkout into a repository of its own with its history (every commit that changed it, same authors, dates and messages); a dry run unless --apply.

Script bin/php/expmigrationreposplit.php, code in kernel/private/classes/commands/expmigrationreposplit.php. Run it from the installation root, as the user the web server runs as:

./console exp:expmigrationreposplit --help
./console exp:migration:repo:split --help
php bin/php/expmigrationreposplit.php --help

Help text

Split the migrations folder into a repository of its own, with its history
Every commit of the installation's checkout that changed the folder becomes a commit of the folder
alone (same author, committer, dates and message), on the branch --branch of the checkout (default
migrations-split; a branch that exists is never moved). With --to a new repository is made in that
new or empty folder with the history as its branch main and, with --remote, the remote origin; it is
never pushed. Neither the settings nor the files of the site are changed: the report says what to set
in migration.ini ([RepositorySettings] Mode=separate, Path) and how to take the folder out of the
site's checkout. Needs only git (no git subtree). Without --apply it says what it would do.

./console exp:migration:repo:split
./console exp:migration:repo:split --to=../site-migrations --apply
./console exp:migration:repo:split --to=../site-migrations [email protected]:example/site-migrations.git --apply

Options

OptionValueHelp
--applyMake the changes (the default is a dry run that lists them and changes nothing)
--dry-runThe default, accepted for scripts that pass it: list what would change, change nothing
--formatrequiredtext (default) or json (the machine output exp-migration/1)
--directoryrequiredThe migrations folder to split (default the first [MigrationSettings] DirectoryList entry)
--branchrequiredThe branch of the checkout the split history goes to (default migrations-split; never an existing one)
--torequiredA new or empty folder for the new repository (its branch main); without it only the branch is made
--remoterequiredThe remote origin of the new repository (a URL or path; it is not pushed)

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/expmigrationreposplit.php, kernel/private/classes/commands/expmigrationreposplit.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x