An open API service indexing awesome lists of open source software.

https://github.com/afeiship/git-sweep

Git branch sweep cli.
https://github.com/afeiship/git-sweep

branch clean cleanup clear cli debug delete dry-run empty filter git local remote sweep

Last synced: 7 months ago
JSON representation

Git branch sweep cli.

Awesome Lists containing this project

README

          

# git-sweep
> Git branch sweep cli.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

![snapshot](https://tva1.sinaimg.cn/large/0081Kckwgy1gk87ynhkbaj30u60asasp.jpg)

## installation
```shell
npm install -g @jswork/git-sweep
```

## usage
~~~
Usage: git-sweep [options]

Options:
-V, --version output the version number
-d, --debug only show cmds, but not clean.
-l, --local clean scope to local(default).
-r, --remote clean scope to remote.
-f, --filter clean by filter.(eg: -f feature/aric)
-i, --interactive interactive operation cli.
-p, --pushed add protected to default.(eg: -p uat,test1).
-k, --clean-gh clean github tags+release.
--rm-local-tags clean local tags.
--rm-remote-tags clean remote tags.
--rm-github-release clean github release.
-c, --created use new list replace default(dangerous).(eg: -c uat,test1).
-h, --help display help for command
~~~

## license
Code released under [the MIT license](https://github.com/afeiship/git-sweep/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/git-sweep
[version-url]: https://npmjs.org/package/@jswork/git-sweep

[license-image]: https://img.shields.io/npm/l/@jswork/git-sweep
[license-url]: https://github.com/afeiship/git-sweep/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/git-sweep
[size-url]: https://github.com/afeiship/git-sweep/blob/master/dist/git-sweep.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/git-sweep
[download-url]: https://www.npmjs.com/package/@jswork/git-sweep