git-pruny-corny
v1.0.2
Published
git-pruny-corny 🌿 A simple and interactive CLI tool to find and delete local Git branches that have already been merged into main or master.
Maintainers
Readme
git-pruny-corny 🌿 A simple and interactive CLI tool to find and delete local Git branches that have already been merged into main or master.
Here's what it looks like in the terminal:
Bash
$ git-prune 🌿 Finding local branches that have been merged... ? Select the branches you want to prune: (Press to select, to toggle all, to invert selection, and to proceed)
[x] feature/one [x] feature/two
Deleted branch: feature/one Deleted branch: feature/two
✨ Pruning complete! ✨ Why? Tired of your local git repository being cluttered with old branches after you've merged your pull requests? git-pruny-corny scans for all local branches that have been safely merged and provides a simple checklist for you to clean them up. It turns a multi-step git command process into a single, easy-to-use command.
Installation Install it globally using npm:
Bash
npm install -g git-pruny-corny Usage Navigate to any of your projects that uses Git.
Bash
cd /path/to/your/project Run the command:
Bash
git-prune Use the arrow keys and the spacebar to select the branches you wish to delete, then press Enter.
