Boris Cherny10/ Use Git Worktrees
Source snapshot: 2026-11-09Independent editorial note
When this pattern helps
Use this when work can be split into independent tasks with clear boundaries. Keep shared-file ownership explicit and require a review step before combining results; parallelism is not automatically faster when tasks depend on one another.
适合可以拆成相互独立子任务的工作。先划清文件与任务边界,再约定合并前的复核步骤;任务之间高度依赖时,并行未必更快。
Claude Code ships with deep support for git worktrees. Worktrees are essential for doing lots of parallel work in the same repository. Boris has dozens of Claudes running at all times, and this is how he does it.
- Use
claude -w to start a new session in a worktree
- Or hit the "worktree" checkbox in the Claude Desktop app
- For non-git VCS users, use the
WorktreeCreate hook to add your own logic for worktree creation
Original source on X