Git worktree workflow for running multiple branches and coding agents in parallel
JeremyCMorgan · x · 2026-09-05
A barrd.dev tutorial lays out a concrete git worktree workflow for running several branches — or several coding agents — at once without stashing.
- How it works: linked worktrees share the same .git object database and history, but each directory is an independent checkout you edit, commit and push separately
- Key commands: git worktree add ../my-project-feature feature-branch mounts an existing branch; git worktree add -b new-feature ../dir creates branch + worktree in one go
- Best for the parallel-agent era: isolate each agent session in its own directory, and hotfixes no longer derail your main line
More from coding & agent
- Meta models hit 43% share on opencode, up from 3.5% two weeks ago — zephyr_z9 · 2026-09-05
- VLDB Talk: Deep Research Agents Need Co-Design with Retrievers, DR Tulu and AgentIR Show — CShorten30 · 2026-09-05
- VLDB talk: Deep Research agents need co-designed retrievers, DR Tulu and AgentIR show — CShorten30 · 2026-09-05
- LangChain revamps MCP support: moves into main package on FastMCP v4, adds stateless spec — LangChain · 2026-09-05
- Watch GPT Sol (ultra) Sculpt a Banana in Blender, Start to Finish (32x Speed) — D3VAUX · 2026-09-05
- Ling-3.0-flash-VL visual agent demos: screenshot-to-site, GUI operation, video tutoring — FellMentKE · 2026-09-05