Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-cleaner

CLI utility for bulk cleanup of branches and tags

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 20 Aug 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc