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.
- Host: GitHub
- URL: https://github.com/afeiship/git-sweep
- Owner: afeiship
- License: mit
- Created: 2020-10-30T05:05:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T13:16:40.000Z (about 1 year ago)
- Last Synced: 2025-03-08T08:02:49.665Z (7 months ago)
- Topics: branch, clean, cleanup, clear, cli, debug, delete, dry-run, empty, filter, git, local, remote, sweep
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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]
## 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