New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

git-branches-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-branches-cleaner

tools for deleting old git branches

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

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, -h Show version number
  • --mode, -m Choose mode of execution (show | delete) [defult: show]
  • --older-than, -o Consider branches, which last commit date was older than chosen days ago [default: 90]
  • --help, -h Show help

Notes

  • You should call script from the root of some git directory
  • Only remote branches can be affected
  • Only remote repo with name origin can be affected
  • Branch will be skipped, if contains master, release or develop as 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 x days ago

Contact

If you have some thoughts or want to get some feature, please, contact me at Telegram @agrigorii.

Keywords

FAQs

Package last updated on 24 Feb 2023

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