git-rm-branch

cli tool to remove merged branches

MIT License

Stars
1
Committers
3

git-rm-branch

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 <config path>]

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

local:
  protected:
    - master
    - develop
  merged:
    - upstream/master
remote:
  origin:
    protected:
      - master
    merged:
      - upstream/master
  upstream:
    protected:
      - master
    merged:
      - master

Change Log

See CHANGELOG.md.

License

MIT

Package Rankings
Top 8.57% on Proxy.golang.org
Badges
Extracted from project README
CircleCI codecov Go Report Card GitHub last commit GitHub tag License