GIT-XCLEANER(1)
π git-xcleaner(1) π
okay bestie, so this is the manual page for git-xcleaner, living in the General Commands Manual section of your friendly neighbourhood man pages. pull up a chair, we're cleaning branches π§Ήβ¨
β¨ NAME β¨
git-xcleaner β interactive git branch removal π¦
like, it deletes branches. but make it interactive. the drama, the power π
π SYNOPSIS π
git xcleaner
that's it. that's the whole invocation. so clean, so simple, so iconic π
πΈ DESCRIPTION πΈ
bestie listen. this tool helps you delete unused topic branches using a TUI (that's a text user interface, for the uninitiated π). it ALSO has mechanisms for pre-selecting branches that can be safely removed β so it's not just a deleter, it's a thoughtful deleter. main character energy fr fr β¨
β οΈ It is NOT recommended running garbage collection after cleanup β this can wipe mis-deleted branches π if you wanna do it, do it prior to running cleaning, so you are still able to recover after a few weeks. order matters, bestie, don't come for me later π
π¨ WARNING π¨
this tool deletes git branches after confirmation. once git garbage is collected there is no way back π₯
double check what you are about to remove. like, actually double check. triple check. vibe check it. π
π ACTIONS π
here's the menu of ways it picks what to yeet ποΈ
Merged
it runs git branch --merged to find a list of branches that are marked for deletion. simple. elegant. slay π
Messages
for each branch, the tip commit message is compared against the base history, and if it's found, the branch is marked for deletion π
heads up though: the whole commit message is compared and it must fully match β no partial matches, no "close enough", it's giving strict π―
the user enters a base branch name, which defaults to "master" β¨
Remote
delete all remote branches in the remote repo which are not present locally. bye girlies, you're not here anyway π
the user enters a remote name, which defaults to the current username π«Ά
Upstream
all branches which no longer exist in origin or a specific remote repository are marked for deletion π¦
the user enters a specific remote name, which defaults to the current username β¨
Manual
you, yes YOU, manually mark branches for deletion. you're the main character now π
π ACTIVE BRANCH π
the active branch is never marked for deletion. periodt. the tool protects its own π
π§ UNDELETING π§
so... you mis-deleted a branch and ignored all the warnings in the documentation AND on the screen? π okay. it happens. check out the homepage for instructions on how to checkout your branch back π
β RETURN VALUES β
- Zero on success π
- One on errors when manipulating with git π
π BUGS π
file bugs at https://github.com/lzap/git-xcleaner/issues β they wanna hear from you π«Ά
π AUTHOR π
Lukas Zapletal and contributors (see README.md) π
πΈ COPYRIGHT πΈ
(c) 2014 Lukas Zapletal
π SEE ALSO π
that's the whole thing bestie, go forth and prune responsibly π¦β¨
July 2025 β this page comes straight outta the General Commands Manual, version-and-date-wise, and that's the sign-off, mwah π π
π¦ where this page comes from
- fedora 43: git-xcleaner 3.1-2.fc43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms