A powerful VS Code extension that enhances git worktree management with an intuitive interface and helpful commands, making it easier to work with multiple branches simultaneously.
Features
Explorer View: Visualize and manage all your worktrees in a dedicated sidebar view.
Status Bar Integration: See your current worktree and branch at a glance in the status bar.
Quick Actions Panel 🚀: One-click access to common workflows:
Create hotfix branches instantly
Set up review environments for PRs
Launch prototype/experimental worktrees
Apply custom templates
File Transfer Between Worktrees ➡️: Easily move work-in-progress files:
Transfer modified, staged, or untracked files
Multi-select files to move
Automatically preserves staging status
Handles file overwrites gracefully
Worktree Templates: Save and reuse your favorite worktree configurations with custom location patterns and automatic dependency installation.
Batch Operations: Operate on multiple worktrees simultaneously:
Pull all worktrees at once
Push only dirty worktrees
Install dependencies everywhere
Health Monitor 💊: Real-time health scores for all worktrees showing:
Uncommitted changes age
Branch sync status (ahead/behind)
Merged branch detection
Visual health indicators (green/yellow/red)
Lifecycle Hooks: Automate tasks with customizable hooks:
onCreate: Run after worktree creation
onDelete: Run before deletion
onSwitch: Run when switching
Support for variable substitution ({path}, {branch})
Settings Sync: Keep your VS Code configuration consistent across all worktrees (settings.json, launch.json, tasks.json).
Timeline View 📅: Visual history of all worktree events (created, deleted, switched), grouped by time periods.
Dependency Graph 📊: Visualize shared dependencies across worktrees and see which projects are related.
Quick Switching: Easily switch between worktrees using the explorer, Status Bar, or Quick Pick.
Visual Indicators:
* indicator and orange icons for worktrees with uncommitted changes.
↑/↓ indicators for ahead/behind sync status.
Worktree Notes: Attach persistent notes to your worktrees to track tasks or PR numbers.
Grouping: Automatically see your most recently used worktrees in a "Recent" section.
Advanced Tools:
Multi-Search: Search across all your worktrees simultaneously.
Cleanup: Identify and bulk-remove worktrees whose branches have already been merged.
Main Branch Switching: Safely switch your main worktree branch with auto-stashing.
Branch Management: Create, switch, and delete branches directly within worktrees.
Smart Creation:
Create new worktrees from new or existing branches.
Automatic directory validation and safety checks.
Option to open in current or new window.
Safety First:
Auto-stashing feature when switching main worktree branches.
Protected main worktree deletion.
Branch locking detection.
Customizable: Sort worktrees by branch name or path, configure status bar visibility, set health check intervals.
Usage
Quick Start
Open a folder that is part of a Git repository.
Click the Git Worktree icon in the Activity Bar.
Use the + (plus) icon to add a new worktree.
Common Commands
Open the Command Palette (Ctrl+Shift+P) and type Git Worktree:
Git Worktree: List Worktrees - Show a quick pick list of all worktrees.
Git Worktree: Add New Worktree - Create a new worktree.
Git Worktree: Switch to Worktree - Switch the current window to another worktree.
Git Worktree: Remove Worktree - Remove a worktree and its directory.