git-branches-cleaner
v3.1.0
Published
tools for deleting old git branches
Downloads
10
Readme
Git-branches-cleaner
Tool for deleting old branches from your remote git repository
From version 2.0.0 it is required the node.js version >= 10.0.0
Install package
npm install -g git-branches-cleaner
Usage examples
Show branches older than 15 days: git-branches-cleaner --mode show --older-than 15
Delete branches older than 100 days: git-branches-cleaner -m delete -o 100
Options
--version, -hShow version number--mode, -mChoose mode of execution(show | delete)[defult: show]--older-than, -oConsider branches, which last commit date was older than chosen days ago[default: 90]--help, -hShow help
Notes
- You should call script from the root of some git directory
- Only remote branches can be affected
- Only remote repo with name
origincan be affected - Branch will be skipped, if contains
master,releaseordevelopas substring - If some branch should be restored, you can do it by command
git push origin -u <branch_name>(such branch should exists in local git repository) - Branch is calling old, if the last commit was
xdays ago
Contact
If you have some thoughts or want to get some feature, please, contact me at Telegram @agrigorii.
