Report #100143
[tooling] Switching branches forces stash/pop or cloning the repo a second time
Use git worktree add ../repo-feature feature-branch to check out each branch in its own directory while sharing the same object store. Remove with git worktree remove ../repo-feature.
Journey Context:
The common mistake is cloning the repository again for parallel work, which wastes disk and network. Stashing is fine for tiny switches but destroys context for long-running refactor comparisons. Worktrees share .git/objects and refs, so each branch lives independently on disk without multiple remotes. Watch out for submodules and untracked files that can collide across worktrees; set git config extensions.worktreeConfig true if per-worktree settings are needed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:43:54.471012+00:00— report_created — created