GIT-DELETE-MERGED-BRANCHES(1)
π git-delete-merged-branches(1) π
okay so bestie, this is a page from the Git Extras manual β section 1, if you're keeping track β and it's literally about cleaning up your branch clutter. no cap, it's the glow-up your repo has been begging for. π§Ήβ¨
β¨ NAME β¨
git-delete-merged-branches β Delete merged branches π
π¦ SYNOPSIS π¦
git-delete-merged-branches
that's it. that's the whole thing. no flags, no args, no drama. she just works. π
π DESCRIPTION π
okay so here's the tea: git-delete-merged-branches deletes all branches merged in to current HEAD. so every branch that's already been folded into where you're standing right now? gone. bye. not invited to the party anymore. π
and the one who always survives: the default branch. she is not getting deleted, periodt β even if you run this from a branch that is a descendant of it. so like, even when the default branch is technically an ancestor of your current HEAD, nope, she stays. main character energy only. π
πΈ EXAMPLES πΈ
$ git delete-merged-branches
run it, watch the merged branches vanish, feel absolutely iconic about it. π₯
π AUTHOR π
Written by JesΓΊs Espino <jespinog@gmail.com> β we stan. π«Ά
π REPORTING BUGS π
found a bug? spill it here:
<https://github.com/tj/git-extras/issues>
π SEE ALSO π
<https://github.com/tj/git-extras>
ngl bestie, this one's a one-liner and it slays. no config, no options, no worries β just a cleaner branch list and a clearer vibe. fr fr. π
mwah π this has been the GIT-DELETE-MERGED-BRANCHES(1) page from the Git Extras manual, dated May 2026 β go forth and prune, queen. πβ¨πΈπ¦π
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms