Skip to content

jmlavoier/clear-branches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clear Branches (Alpha)

(This library is not finished yet, it could be not working well in some environments)

Productivy and easy way to clear your local branches

WIP

  • Setup to run using clear-branches or npx clear-branches
  • Setup to run cross environment (unix or windows) platforms, shelljs could be a good solution
  • Code improvement, it's a messy today, sorry.
  • Security improvement using Deno.

Getting started

Peer dependency

  • Node equal or greater than v14

Install and Run

If you don't want to install globaly, you can just execute into your git project:

$ npx clear-branches

Or installing:

yarn:

$ yarn global add clear-branches
$ cd your-git-project/
$ clear-branches

npm:

$ npm i -g clear-branches
$ cd your-project/
$ clear-branches

Usage

Inside your project:

$ cd your-git-project/
$ clear-branches

all-branches

You will see all branches that will be deleted to confirm if everything is alright. It automatically ignores master, develop and release branches.

Options

But, if you want to ignore more banches:

clear-branches --ignore=chore/bump-version,feat/finish-scheduling-treatment

all-branches