Skip to Content
Managing Git WorktreesGit Worktrees Overview

Managing Git Worktrees

Git worktrees let you check out multiple branches of the same repository simultaneously into distinct directories on disk. This enables you to switch context instantly, run multiple build or test configurations in parallel, and work with autonomous AI coding agents without git stash conflicts or branch thrashing.

WorktreeWise provides an end-to-end interface to inspect, create, configure, and maintain your worktrees with complete safety guarantees.


Worktree Lifecycle & Operations


Lifecycle Guide Matrix

OperationPurposeKey WorktreeWise CapabilitiesShortcut
OverviewRepository health dashboard6 metric cards, donut status chart, sortable table, 4-way disk space breakdown, and large untracked file detection.Shift + W
CreateSpin up a new workspace3 checkout modes (HEAD, Branch, Tag), Pre/Post hooks, Sparse Checkout directory reduction, node_modules symlinking, and multi-source .env isolation.Shift + W
ListBrowse worktreesQuick action menus, direct launch in VS Code/Cursor/JetBrains, terminal pane integration, and active AI agent indicators.Shift + W
RenameRename worktree & branchRenames the directory and executes atomic git branch -m to keep branch and folder naming synchronized.
MoveRelocate directoryUpdates administrative gitdir pointers automatically without corrupting Git internal references.
LockProtect worktreePrevents accidental deletion, renaming, moving, or automated pruning with custom administrative reasons.
UnlockRe-enable operationsRestores full edit and deletion capabilities once external drives reconnect or work completes.
DeleteTear down worktreeUncommitted change detection, dirty state warnings, and options to delete only worktree or delete worktree + branch.
PruneClean stale referencesNon-destructive dry-run preview, granular checkboxes, and safety checks before cleaning administrative records.Shift + P