git-worktrees
Installation
SKILL.md
Git worktrees (effective use)
Git branches name a line of commits. Worktrees are extra working directories on the same repository, each with its own checkout, index, and usually its own branch.
Pair with concurrent-cli-agents for Hermes/OpenClaw/Grok/Cursor orchestration and cloud sandboxes.
Branches vs worktrees
| Branch | Worktree | |
|---|---|---|
| Answers | Which commits am I extending? | Where on disk am I editing? |
| Concurrent checkouts | Only one per repo folder without worktrees | One per worktree path |
| Cost | Metadata only | Extra disk (node_modules, build artifacts per tree) |
| Shared | All branches share one .git object store |
Same — one repo, many folders |