Skip to content

Exponential CMS

Developing with Git

Install Exponential as Git clones with full history, keep your work on a branch, and update from GitHub.

For building a website, install Exponential as Git clones with their full history, the kernel and every extension, instead of as release archives. Archives are fine for a server that only runs a finished site. Clones let you see every change with git diff, find why a line is there with git log and git blame, find the change that broke something with git bisect, keep your own changes on a branch, and send a fix back to the project.

What you need

  • Git 2.28 or later and Composer 2.
  • A GitHub account only when you want to send changes back.

1. Tell Composer to prefer clones

composer config --global 'preferred-install.se7enxweb/*' source
composer config --global preferred-install

Every se7enxweb/* package is then installed as a Git clone, and everything else as a fast archive. Keep the quotes, so your shell does not expand the *.

2. Install with Git

git clone https://github.com/se7enxweb/exponential.git exponential
cd exponential
git switch -c my-site
composer install

git switch -c my-site starts your own branch on top of main. To build on a release instead, name its tag: git switch -c my-site v6.0.14. composer install then clones every extension the kernel requires into extension/<name>, each with its own history. Then install the site as usual, for example with php bin/php/console exp:install --apply.

3. Update

An update is always two moves, in this order: Git brings the kernel up to date, then Composer brings the extensions up to date to match the new composer.json.

php bin/php/maintenance.php on --message="Updating" --until=1h
git status --short --untracked-files=no
git fetch origin --tags
git log --oneline HEAD..origin/main | head -5
git merge --no-edit origin/main
composer update
php bin/php/ezcache.php --clear-all
php bin/php/maintenance.php off

git status must print nothing before you merge. On a site served by Velocity, run php bin/php/console exp:velocity deploy instead of the cache clear, so the new code is loaded. Apply the release's database update, then check the site.

Which line to follow

  • main, checked hourly or daily: development machines, staging sites, contributors.
  • main, checked weekly or monthly: sites that change often but want quiet weeks.
  • The newest release tag: live sites. Always sort tags by version: git tag -l 'v6.*' --sort=version:refname.

Note: Never clone an extension by hand in place of a package Composer installed as an archive: it is replaced, with its history and commits, at the package's next update. Let Composer make the clone.

Last updated 11/26/2026. Something missing or wrong? Write to info@se7enx.com.