Deploy by pushing to a
deploy* branch made simplier.
Run this command in your local git repository directory:
It will then find all branches named
deploy* and let you choose which one to push to. It is usually useful if you have a CI that builds/deploys your project on push to that branch.
npx branch-deploy --help
Push to all deploy branches
npx branch-deploy --all
Push to specific branch
npx branch-deploy --target deploy/production
Push to multiple branches matching a pattern
npx branch-deploy --target "deploy/*/beta"
Use different branch prefix
npx branch-deploy --prefix staging
Use different source commit
npx branch-deploy --source 52ca70ea2076bd17aa93a5efceeda3a2834db801
Use different remote name
npx branch-deploy --remote not-origin