git-compose
v0.2.2
Published
Compose GIT branches and cascade merge updates
Downloads
6
Readme
GIT Compose
Compose GIT branches and cascade merge updates
Assumes your project is using the IIP™
branching pattern:
- Isolation Branches
- Integration Branches
- Package Branches
Isolation Branch
A single technology in isolation, prefixed with
iso__
.
Integration Branch
Integration between multiple technologies (ie. composed branches), prefixed with
int__
.
Package Branch
Isolation, muliple Isolation and/or Integration Branches on their own or composed to create a foundation upon which a reusable package (eg. NPM package) is built, prefixed with
pkg__
.
Other Branches
All other branches can be named whatever you want so long as they do not start with iso__, int__ or feat__ they will not be touched, by the commands below.
Quick Start
Install
npm i -D git-compose
Make sure your branches follow the
IIP™
branch naming conventions.Use the commands below
Commands
- print project branch hierarchy
verbose mode (shows full branch names)npx git-compose print_heirarchy
fetch remotesnpx git-compose print_heirarchy -v
npx git-compose print_heirarchy -f
- build an integration branch
name must be prefixed withnpx git-compose build_integration_branch <branch>
int__
and must contain existing branches eg.int__branch1--branch_sub2--branch_sub2_subsub1
- cascade merge updates through all branches
npx git-compose cascade_merge
Env file
Add an .env
file to your project to configure this script.
eg.
ROOT_BRANCH=iso__base
ERROR_LOG_PATH=git-branch-errors.txt
Complete Indemnity
The IIP™
standard is an experiment, use with discretion.
I take no responsibility for any damage or loss resulting from the use of this package.