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