
🚀 Clean up your Git branches in seconds! Delete merged branches with one click. Auto-detect stale branches. Create branches from templates. Beautiful dashboard interface. The smart way to manage Git branches.
✨ New extension with powerful features! Join the growing community of developers who keep their repositories clean and organized.
Love this extension? If Git Branch Manager Pro saves you time and helps keep your repositories clean, consider buying me a coffee ☕ Your support helps me dedicate more time to improving this extension with new features and bug fixes!
Features
- 🧹 Smart Cleanup: Automatically identify and delete merged branches with one click
- 📅 Old Branch Detection: Find and clean branches older than 30 days (customizable)
- 🌿 Branch Templates: Create branches from predefined templates (Feature, Bugfix, Hotfix, Release, Experiment)
- 📊 Visual Dashboard: Beautiful webview interface showing all branches organized by status
- ⚡ Quick Actions: One-click cleanup for merged branches with progress tracking
- 🔔 Smart Notifications: Get notified when you have 5+ branches that need cleanup
- 🎯 Bulk Operations: Select and delete multiple branches at once with checkboxes
- 📍 Status Bar Integration: See at a glance how many branches need cleaning
Usage
Open Branch Manager Dashboard
- Click the branch icon in the VS Code status bar
- Run command:
Git Branch Manager: Show Branch Cleaner
- Use keyboard shortcut:
Ctrl+Shift+G Ctrl+Shift+C
(Mac: Cmd+Shift+G Cmd+Shift+C
)
Quick Clean Merged Branches
- Run command:
Git Branch Manager: Quick Clean Merged Branches
- Instantly removes all merged branches with confirmation dialog
Create Branch from Template
- Run command:
Git Branch Manager: Create Branch from Template
- Use keyboard shortcut:
Ctrl+Shift+G Ctrl+Shift+N
(Mac: Cmd+Shift+G Cmd+Shift+N
)
- Choose from templates:
- ✨ Feature →
feature/your-description
- 🐛 Bugfix →
bugfix/your-description
- 🔥 Hotfix →
hotfix/your-description
- 🚀 Release →
release/v1.2.0
- 🧪 Experiment →
exp/your-description
Extension Settings
Configure the extension to match your workflow:
gitBranchManager.showNotifications
: Enable/disable cleanup notifications (default: true
)
gitBranchManager.daysUntilStale
: Days before a branch is considered old (default: 30
, min: 7
, max: 365
)
gitBranchManager.protectedBranches
: Branches that should never be deleted (default: ["main", "master", "develop", "dev", "staging", "production"]
)
gitBranchManager.confirmBeforeDelete
: Ask for confirmation before deleting branches (default: true
)
Requirements
- VS Code 1.74.0 or higher
- Git installed and accessible from command line
- A Git repository workspace
Installation
- Open VS Code
- Press
Ctrl+P
/ Cmd+P
to open the Quick Open dialog
- Type
ext install YonasValentinMougaardKristensen.git-branch-manager-pro
- Click Install
How It Works
The extension:
- Scans your local Git branches
- Checks which branches are merged into your main branch
- Calculates the age of each branch based on last commit
- Presents an intuitive dashboard for branch management
- Safely deletes branches using
git branch -D
(only local branches)
Safety Features
- Protected branches are never shown as deletion candidates
- Confirmation dialogs before bulk deletions
- Current branch is always protected
- Only affects local branches (not remote)
Release Notes
1.0.0
Initial release of Git Branch Manager Pro
- Beautiful branch management dashboard
- Quick cleanup command for merged branches
- Branch creation from templates
- Status bar integration showing branches to clean
- Bulk selection and deletion
- Smart notifications
- Customizable settings
Enjoy keeping your Git branches clean and organized! 🎉
License
MIT License - see LICENSE file for details
Contributing
Found a bug or have a feature request? Please open an issue on GitHub!
Support the Developer

If you find Git Branch Manager Pro useful and it saves you time, consider supporting its development! Your support helps me:
- 🚀 Add new features (remote branch management, undo functionality, and more!)
- 🐛 Fix bugs faster
- 📚 Improve documentation
- ⚡ Keep the extension updated with the latest VS Code APIs
Every coffee counts and is greatly appreciated! Thank you for being an awesome user! 🙏
Support on Buy Me a Coffee