Git Worktree Extension for Visual Studio
A lightweight extension to easily manage Git worktrees inside Visual Studio. Create, switch, and work on multiple branches without leaving your IDE.
What it does:
- Create new worktrees for any branch
- Switch between worktrees smoothly
- Manage multiple branches side-by-side
Why? Visual Studio’s Git support doesn’t handle multi-branch workflows well. This fixes that.
How to install:
Get it from the Visual Studio Marketplace or build from source.
Usage:
After installation, two options appear under Git > Git Worktree:
-
- Create Worktree (Ctrl+Shift+=)
-
- Manage Worktrees (Ctrl+Shift+)

Create Worktree Window:

- Shows current repo
- Choose branch from a list (branches with a "+" prefix are active worktrees)
- Set path for new worktree
- Force create option (overwrites overlapping worktrees)
- Option to open the new worktree in a new Visual Studio window (works if “Load” is enabled in settings)
- Creates new Worktree for selected branch in selected path
Manage Worktrees Window:

- Shows current repo
- List of all created worktrees
- Option to open the selected worktree in a new Visual Studio window
- Open selected worktree
- Force remove (even if uncommitted changes exist)
- Prune dangling worktree references
- Remove selected worktree
Settings:

Accessible via Git > Settings > Source Control > Git Worktree
- Default branch path: If empty, defaults to
repo path\<repo>_worktree\<branch> , else user-defined path
- Load: If enabled, opens new worktree in a new window after creation (enables the checkbox in create window)
This keeps your multi-branch Git workflow smooth and integrated, right inside Visual Studio.
| |