1.0.7 • Published 5 years ago
git-cleaner v1.0.7
git-cleaner
:scissors: CLI utility for bulk cleanup of branches and tags
Why?
Sooner or later, a lot of unnecessary branches and tags can accumulate in the project, but most UI utilities do not allow you to multi-select elements for deletion, and this is exactly the task of this utility.
Features
- multiselect branches/tags for removal
- multiple remote
- filtering on select mode
- displaying progress
Install
NPM
npm install git-cleaner -gYarn
yarn global add git-cleanerDevelopment Setup
# install dependencies
npm install
# build dist files
npm run buildNote
Before using the utility you need to sync git
# Delete local tags
git tag -l | xargs git tag -d
# Fetch remote branches and tags
git fetchUsage
Usage: gitc [options] [command]
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
tag|t clean tags
branch|b clean branches
help [command] display help for commandExamples
Removing branches by regexp
gitc branch featRemoving selected branches
gitc branchRemoving tags by regexp
gitc tag 'v.*\.2\..*'Removing selected tags
gitc tagMIT © Igor Ognichenko