git-prune
SKILL.md
Git Prune Local Branches
Remove local branches whose upstream tracking branches have been deleted on remote.
Workflow
Fetch and prune remote-tracking references
!git fetch --prune
Find and delete stale local branches
!git branch -vv | grep ': gone]' | awk '{print $1}'
Apply these requirements
- Preview: Show which branches will be deleted before deleting
- Safe Delete: Use
-d(safe delete) which refuses to delete unmerged branches - Report: Show summary of deleted branches
Never
- Force delete (
-D) without user confirmation - Delete the current branch
- Delete protected branches (dev, staging, main)
Execute
Execute the workflow now.
Weekly Installs
18
Repository
codyswanngt/lisaGitHub Stars
1
First Seen
Feb 10, 2026
Security Audits
Installed on
codex18
opencode17
gemini-cli17
github-copilot17
kimi-cli17
amp17