Git Branch Cleanup CLI Extension Guide

Choose a safe branch cleanup, branch switching, worktree, or local repository setup helper without risking unmerged work.

11 Repo & Branch extensions 5 active Reviewed 2026-06-08

Start Here

Use the table as a quick chooser. The goal is not to automate deletion blindly; it is to pick the safest first tool for the branch cleanup or repository workflow in front of you.

Starter Pack

Inspect the workflow-specific install bundle, then install only the extensions that match your workflow. Do not pipe install bundles directly into a shell.

curl -fsSL https://sjh9714.github.io/gh-extension-atlas/install/starter-packs/local-repository-cleanup.txt
gh extension install seachicken/gh-poi
gh extension install mislav/gh-branch
gh extension install redraw/gh-install
If you need to... Start with Why Status Install
Safely remove merged local branches poi
Safely clean up local branches.
A focused cleanup tool and the safest first stop for merged local branches. active gh extension install seachicken/gh-poi
Fuzzy find, switch, or delete branches manually branch
Fuzzy find, switch between, and delete branches.
Good when you want selection and navigation instead of automatic cleanup. watch gh extension install mislav/gh-branch
Clean a workspace before a new task tidy
Clean up a Git workspace before starting new work.
A broader workspace cleanup helper for context switching. active gh extension install HaywardMorihara/gh-tidy
Work across multiple branches at once worktree
Improve Git worktree workflows with GitHub context.
Useful when worktrees are already part of your branch workflow. active gh extension install despreston/gh-worktree
Delete branches with upstream and unpushed checks clean-branches
Delete local branches with no upstream and no unpushed commits.
A specific cleanup approach, but verify compatibility because it is stale. stale gh extension install davidraviv/gh-clean-branches
Install release binaries while setting up a repo install
Install GitHub release binaries interactively.
Not a cleanup tool, but useful in local repo setup workflows. active gh extension install redraw/gh-install

First Picks

poi Safe merged branch cleanup Developers who want a trustworthy branch cleanup default. gh extension install seachicken/gh-poi
branch Fuzzy branch selection Developers with many local branches. gh extension install mislav/gh-branch
tidy Workspace cleanup Developers who regularly switch tasks and branches. gh extension install HaywardMorihara/gh-tidy

Safety Checks And Workflow Fit

Prefer tools that make deletion explicit, show what will be removed, and help you avoid unmerged or unpushed work. Verify stale tools before trusting them with cleanup.

worktree Parallel branch work Developers who keep multiple branches checked out at once. gh extension install despreston/gh-worktree
clean-branches Upstream-aware cleanup Developers cleaning long-lived local Git workspaces. gh extension install davidraviv/gh-clean-branches
install Release binary installs Developers who often install tools from GitHub releases. gh extension install redraw/gh-install

Freshness Notes

The atlas is a reviewed snapshot, not a live ranking. Recheck upstream repositories before adopting a tool for production workflows, especially when the extension can change local branches, CI workflows, repository state, or release automation.