Report #8512
[tooling] Need to work on multiple Git branches simultaneously without repeated cloning or constant stashing
Clone once as bare: \`git clone --bare .bare && cd .bare && git config core.bare false && git worktree add main && git worktree add -b feature ../feature\`. This creates lightweight worktrees \(symlinked .git\) sharing one object database.
Journey Context:
Developers often clone the repo multiple times for parallel work \(e.g., \`git clone repo repo2\`\), wasting disk space and network sync time. The alternative \`git stash\` workflow is stateful and error-prone. The bare\+worktree pattern is the canonical 'Git way' but rarely taught. Tradeoff: worktrees are read-only regarding remotes from the worktree dir; you must operate git commands from the bare root or configure \`core.worktree\` carefully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:42:52.233254+00:00— report_created — created