https://github.com/suzuki-shunsuke/git-rm-branch
cli tool to remove merged branches
https://github.com/suzuki-shunsuke/git-rm-branch
cli git oss
Last synced: 9 months ago
JSON representation
cli tool to remove merged branches
- Host: GitHub
- URL: https://github.com/suzuki-shunsuke/git-rm-branch
- Owner: suzuki-shunsuke
- License: mit
- Created: 2017-09-30T14:49:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T18:58:38.000Z (over 3 years ago)
- Last Synced: 2024-06-21T03:18:46.775Z (about 2 years ago)
- Topics: cli, git, oss
- Language: Go
- Homepage:
- Size: 161 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-rm-branch
[](https://circleci.com/gh/suzuki-shunsuke/git-rm-branch)
[](https://codecov.io/gh/suzuki-shunsuke/git-rm-branch)
[](https://goreportcard.com/report/github.com/suzuki-shunsuke/git-rm-branch)
[](https://github.com/suzuki-shunsuke/git-rm-branch)
[](https://github.com/suzuki-shunsuke/git-rm-branch/releases)
[](https://raw.githubusercontent.com/suzuki-shunsuke/git-rm-branch/master/LICENSE)
cli tool to remove merged branches
## Install
```
$ go get suzuki-shunsuke/git-rm-branch
```
## Usage
```
$ git-rm-branch init
$ git-rm-branch run [--local] [--dry-run] [--quiet] [--config ]
```
### init
```
$ git-rm-branch help init
NAME:
git-rm-branch init - create a configuration file
USAGE:
git-rm-branch init [arguments...]
```
### run
```
$ git-rm-branch help run
NAME:
git-rm-branch run - remove merged branches
USAGE:
git-rm-branch run [command options] [arguments...]
OPTIONS:
--config value The path of the configuration file
--dry-run don't remove branches but print commands to remove branches
--quiet don't print commands
--local remove only local branches
```
## Configuration file location
If the `--config` option is not used,
this tool assumes that the configuration file `.git-rm-branch.yml` is in the root directory of the git repository.
## The example of the configuration file
```yaml
local:
protected:
- master
- develop
merged:
- upstream/master
remote:
origin:
protected:
- master
merged:
- upstream/master
upstream:
protected:
- master
merged:
- master
```
## Change Log
See [CHANGELOG.md](CHANGELOG.md).
## License
[MIT](LICENSE)