Migrates repositories from the old branching strategy to the new one.
stage-env-copy → stage-env → main
sandbox → qa → pre-prod → main
Run from inside the repository:
cd /path/to/repository
../migrate-branching-strategy.sh- Creates
qabranch fromstage-env - Creates
pre-prodbranch fromqa - Creates
sandboxbranch fromstage-env-copy(orqaifstage-env-copydoesn't exist) - Pushes all branches to remote
Note: Existing branches are preserved and not overwritten.