Socket
Socket
Sign inDemoInstall

git-cleaner

Package Overview
Dependencies
61
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-cleaner

CLI utility for bulk cleanup of branches and tags


Version published
Weekly downloads
10
increased by900%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.7 (2020-08-20)

Features

  • ci: configured ci (5a630d9)

Readme

Source

git-cleaner

Build CI Version License

: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 -g
Yarn
yarn global add git-cleaner

Development Setup

# install dependencies
npm install

# build dist files
npm run build

Note

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 fetch

Usage

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 command

Examples

Removing branches by regexp
gitc branch feat
Removing selected branches
gitc branch
Removing tags by regexp
gitc tag 'v.*\.2\..*'
Removing selected tags
gitc tag

MIT © Igor Ognichenko

Keywords

FAQs

Last updated on 20 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc