@arc2898/gitclean
v1.0.1
Published
Safely find and remove merged branches, stale tags, and untracked files.
Downloads
56
Readme
GitClean
Safely find and remove merged branches, stale tags, and untracked files.
Install
npm install -g @arc2898/gitcleanCommands
gitclean list
Show what can be cleaned.
gitclean list # All items
gitclean list --branches # Only merged branches
gitclean list --tags # Only tags
gitclean list --untracked # Only untracked files
gitclean list -a # Include remote branchesgitclean dry-run
Same as list (shows what would be deleted).
gitclean dry-rungitclean clean
Actually delete items.
gitclean clean --force # Delete without asking
gitclean clean --branches # Only branches
gitclean clean --tags # Only tags
gitclean clean --untracked # Include untracked filesSafety
- Never deletes main/master branch
- dry-run shows everything before touching anything
- Requires --force to actually delete
License
MIT
