0.0.1 • Published 7 months ago

fmb v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

fmb - Fire (remove) Merged Branches

fmb is a simple CLI tool for removing Git branches that have already been merged into origin/main.

Features

  • Deletes merged branches automatically.
  • Supports excluding specific branches.
  • Supports branch filtering with glob patterns.
  • Interactive confirmation before deletion.
  • Automatic deletion without confirmation using the --all flag.

Usage

npx fmb [excluded-branches|glob-pattern] [--all]

Examples

  1. Delete all merged branches except main and master:

    npx fmb
  2. Exclude custom branches:

    npx fmb develop,canary
  3. Use Glob Patterns:

    npx fmb 'feature/*'
  4. Automatic Deletion Without Confirmation:

    npx fmb --all
  5. Interactive Confirmation:

    • You will be prompted to confirm each branch deletion unless --all is specified.

How It Works

  1. Fetches updates from the remote repository and prunes deleted branches.
  2. Lists all branches that are merged into origin/main.
  3. Excludes specified branches or matches them using glob patterns.
  4. Deletes branches automatically or prompts for confirmation based on the --all flag.

License

MIT License © 2024 Naver Financial

0.0.1

7 months ago

0.0.0

7 months ago