Report #29475
[tooling] Need to work on multiple git branches simultaneously without constant stashing or cloning repos multiple times
Use git worktree add to create linked working directories; each worktree has its own branch and index but shares the object database, eliminating disk overhead
Journey Context:
Developers often clone the same repo multiple times or constantly stash/pop when context-switching between branches. Worktrees eliminate this overhead by creating lightweight linked directories \(each using ~0 additional storage for objects\). The tradeoff is you must manage multiple directories, but this is superior to submodule complexity or clone duplication. Crucially, worktrees prevent the 'false clean' state where you stash changes to switch branches, then forget to unstash.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:51:55.630852+00:00— report_created — created