Skip to content

2nthony/git-delete-branch

Repository files navigation

git-delete-branch

🔌Git delete branch enhancement tooling

Please consider starring the project to show your ❤️ and support.

NPM version NPM download CircleCI License donate

Features

  • Support delete matched branches. e.g.feat-*

Prerequisites

  • git
  • node.js

Usage

One-off usage via npx:

$ npx git-delete-branch [...branches]

# Example
$ npx git-delete-branch dev test-*

Using it globally:

$ npm i -g git-dlete-branch

# Or using yarn
$ yarn global add git-delete-branch

$ git-db [...branches]
$ git-delete-branch [...branches]

# Or using git external commands
$ git db [...branches]
$ git delete-branch [...branches]

CLI

git-delete-branch [...branches] [options]

branches

Delete branches

options

-r, --remotes

Delete remotes branches

--scope <scope>

  • Default: origin
  • When: -r, --remotes

Branches scope name

Relates

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

git-delete-branch © evillt, Released under the MIT License.

Authored and maintained by EVILLT with help from contributors (list).

evila.me · GitHub @evillt · Twitter @evillt