Report #67834
[tooling] Switching git branches frequently causes stashing/unstashing overhead or requires cloning the repository multiple times for parallel work
Use git worktree add ../repo-feature-branch feature-branch to create a separate directory for the branch that shares the same .git database, eliminating stashing and clone overhead
Journey Context:
Developers often clone the repository multiple times to work on different branches or constantly stash/pop when interrupted. Worktrees allow multiple working directories attached to a single repository, sharing the object database but with independent checkouts. This is superior to cloning because it doesn't duplicate git history and keeps all branches in sync automatically. The tradeoff is disk space for the working tree files and the need to remember which directory corresponds to which branch, but git worktree list helps manage this.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:20:24.018815+00:00— report_created — created