Clean Gone Branches

Remove local git branches whose configured upstream is marked [gone], including associated worktrees.

dceoy Updated 161 repo stars

File contents

Clean Gone Branches

Run the bundled scripts/clean.sh from this skill in the current repository.

Only branches explicitly marked [gone] may be deleted. Never delete the current branch or the repository's main worktree.

Report removed and skipped branches or worktrees. If none are [gone], report that no cleanup was needed.

dceoy/ai-coding-agent-skills commit 2c2551c57f

Frequently asked questions

npx get-skill add dceoy/clean-gone-branches