Clean Gone Branches

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

dceoy 2c2551c 2 files · 1.8 KB Updated

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/tree/main/skills/clean-gone-branches commit 2c2551c57f

Frequently asked questions

npx skillmds@latest add dceoy/clean-gone-branches