Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/filipchalupa/branch-deploy

Package to simplify pushing to deploy branches.
https://github.com/filipchalupa/branch-deploy

Last synced: about 15 hours ago
JSON representation

Package to simplify pushing to deploy branches.

Awesome Lists containing this project

README

        

# Branch deploy [![npm](https://img.shields.io/npm/v/branch-deploy.svg)](https://www.npmjs.com/package/branch-deploy)

Deploy by pushing to a `deploy*` branch made simplier.

## Usage

Run this command in your local git repository directory:

```bash
npx branch-deploy
```

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.

![demo screencast](https://raw.githubusercontent.com/FilipChalupa/branch-deploy/HEAD/screencast.gif)

### Optional Options

#### Show help

```bash
npx branch-deploy --help
```

#### Push to all deploy branches

```bash
npx branch-deploy --all
```

#### Push to specific branch

```bash
npx branch-deploy --target deploy/production
```

#### Push to multiple branches matching a pattern

```bash
npx branch-deploy --target "deploy/*/beta"
```

#### Use different branch prefix

```bash
npx branch-deploy --prefix staging
```

#### Use different source commit

```bash
npx branch-deploy --source 52ca70ea2076bd17aa93a5efceeda3a2834db801
```

#### Use different remote name

```bash
npx branch-deploy --remote not-origin
```

#### Force

```bash
npx branch-deploy --force
```

#### Force with lease

```bash
npx branch-deploy --force-with-lease
```