Comprehensive git branch cleanup and organization
# Comprehensive Git Branch Cleanup Perform a complete cleanup of local and remote branches after working on multiple PRs. ## Current State - Default branch: !`git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main"` - Current branch: !`git branch --show-current` - Fetch latest: !`git fetch --all --prune 2>&1` ## Branch Inventory ### All Branches Local branches with tracking status: !`git branch --format='%(refname:short) %(upstream:track)' | sort` Recent branches by activity: !`git for-each-ref --count=15 --sort=-committerdate refs/hea...
Clean up old and defunct branches that are no longer needed
Clean up merged branches and organize repository structure: $ARGUMENTS
Clean up merged and stale branches locally and remotely with comprehensive safety checks
Clean up merged branches and organize repository structure: $ARGUMENTS