08/03
2018
Commands to get vendor and other ignored files into git,
The goal of this tool is to make it as easy as possible to commit your ignored directories to git., (*1)
Otherwise known as "artifact-building", this command will:, (*2)
This plugin code was borrowed heavily from Acquia's BLT command deploy
command., (*3)
Add to your composer project or globally:, (*4)
composer require jonpugh/composer-git-build
, (*5)
-or-, (*6)
composer global require jonpugh/composer-git-build
, (*7)
Add to your .gitignore file:, (*8)
## IGNORED IN GIT BUILD: ## # Items below this line will retained in artifacts built with the `composer git-build` command.
Add to your composer.json file:, (*9)
{ "config": { "git.remotes": [ "git@github.com:organization/build-repo.git", "svn@acquia.com" ] } }
The new built repo will have these remotes added automatically, and the tag or branch pushed to them., (*10)
Run composer git-build
:, (*11)
Usage: git-build [options] Options: -b, --build-dir[=BUILD-DIR] Directory to create the git artifact. Defaults to the composer working-dir option. --branch=BRANCH Branch to create. --tag=TAG Tag to create. -m, --commit-msg=COMMIT-MSG Commit message to use. --ignore-dirty Allow committing even if git working copy is dirty (has modified files). --dry-run Build and commit to the repository but do not push.