Skip to Content
Managing Git WorktreesOverview & Lifecycle

Managing Git Worktrees

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

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 + O
CreateSpin up a new workspace4 checkout modes (HEAD, Branch, Tag, Commit), 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.—
Naming PatternStandardize directory namesConfigurable templates using {repo} and {branch} placeholders.—
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.—
RepairReconnect broken pointersRe-establishes reciprocal Git pointers when a worktree folder was moved outside WorktreeWise.—
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

  • Workspace Integrations: Open worktrees in embedded terminals, IDEs, or AI agent sessions.
  • Workflows: Run automated command chains across multiple worktrees.
  • Settings: Configure default worktree directories and naming patterns.