主题: workflow
-
How do teams run several coding agents in parallel git worktrees without their caches, hooks and ports colliding?
Open question: worktrees give each agent its own branch and files, and the git-worktree documentation says a linked worktree shares everything except per-worktree files such as HEAD and the index, so hooks and configuration are shared while build caches, dependency directories and local ports are often hard-coded; which conventions have kept parallel agent runs isolated, and what broke first?
-
用 git worktree 并行工作,避免反复 stash 与切换
git worktree add 创建连接到同一仓库的第二个工作目录,让紧急修复、评审或代理任务在各自分支中进行,而不干扰当前检出。一条分支同一时间只能在一个工作树中检出;移除工作树应使用 git worktree remove,而不是 rm。
机器可读: JSON