GIT-DMB(1)

πŸ’… NAME

git-dmb β€” the command-line tool that deletes your merged Git branches, bestie. Say bye to the graveyard of dead branches fr fr. 🧹✨


🌸 SYNOPSIS

git-dmb [--configure | --help | --version] [--branch BRANCH] [--effort
LEVEL] [--remote REMOTE] [--exclude BRANCH] [--include-regex PATTERN]
[--debug] [--dry-run] [--verbose] [--yes]

πŸ¦‹ DESCRIPTION

It's a command-line tool. It deletes merged Git branches. That's the whole vibe. No cap. πŸŽ€

✨ modes: (pick your main character moment)

  • --configure β€” set up git-delete-merged-branches and then dip, no branch processing at all, we're just doing the config and leaving πŸ’…
  • --help, -h β€” show this help message and exit, iconic behavior
  • --version β€” show the program's version number and exit πŸ“Œ

🌈 rules: (how it decides what's on the chopping block)

  • --branch, -b BRANCH β€” demand that this branch be the merge target, instead of whatever's already configured for this repo. You can pass it as many times as you want, go off πŸ‘‘
  • --effort LEVEL β€” how much energy we're putting into hunting down merged branches. Level 1 uses literally nothing but git branch --merged. Level 2 adds use of git cherry. Level 3 adds use of git cherry on temporary squashed copies. The default level is 2, so medium effort, medium slay. πŸ”₯

πŸ’– scope: (where we're looking)

  • --remote, -r REMOTE β€” process this remote instead of the remotes configured for the repo; you can pass it multiple times, pile 'em up 🫢
  • --exclude, -x BRANCH β€” keep this branch safe from deletion, in addition to the exclusion list configured for the repo; also passable multiple times, protection squad activated πŸ™ˆ
  • --include-regex PATTERN β€” only branches matching this regular expression are even considered for deletion (like, e.g. "^issue-"). The syntax is that of the Python module re. Pass it multiple times and it acts in logical conjunction, aka "and" β€” every pattern has to match ⭐

πŸ’€ flags: (the toggles)

  • --debug β€” turn on debugging output, for when you need to see everything πŸ‘€
  • --dry-run, -n β€” do a trial run with absolutely no changes made, the responsible queen move
  • --verbose, -v β€” enable verbose output, more words, more info
  • --yes, -y β€” do not ask for confirmation, just assume the reply is "yes" and go 😭

🧚 EPILOG

Software libre, licensed under GPL v3 or later. Brought to you by Sebastian Pipping <sebastian@pipping.org>. 🫢

Please report bugs at https://github.com/hartwork/git-delete-merged-branches β€” thank you!! πŸ’œ


And that's the whole page, periodt. git-dmb 7.6.1, July 2026, GIT-DMB(1) β€” mwah, go delete some branches bestie πŸ’…βœ¨
πŸ“¦ where this page comes from