Git worktree
Hacker ApprovedThe most recommended of 9 version control features
Lets you check out several branches of one repo in separate folders, sharing history without full clones. Caveat: a branch can't be open in two worktrees at once.
46 people recommended Git worktree in Hacker News comments, 10 had mixed feelings and 19 criticized it, November 2025 to October 2026.
Summary written by Claude from 54 comments.
75 people gave an opinion
- recommend it
- 46
- mixed feelings
- 10
- warn against or regret it
- 19
The record
Recommended in 10 of 12 months
In 35 different threads.
- November 2025: not recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: not recommended
Why it carries the badge
- 46 people recommend itNeeds 10 or more, met.
- 2.4 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 10 of 12 monthsNeeds 4 or more, met.
- Recommended in 35 threadsNeeds 5 or more, met.
- The biggest thread supplies 9% of its recommendersNeeds half or less, met.
The same rules apply to every product, and the badge can’t be bought. Mixed feelings count toward neither side. How the badge works
What people say about it
Reasons grouped from a sample of 40 of the 80 opinions about it, picked in proportion to how many people recommend it, have mixed feelings and criticize it. Each mark is one comment in the sample. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Runs parallel agents in separate folders
“You give each agent a git worktree and if you want to check, you checkout their branch.”
Comment from 7 Jan 2026 in “The creator of Claude Code's Claude setup” “With git worktrees you can you have your agents working on literally different folders”
Comment from 25 Jan 2026 in “Coding assistants are slow. So we multitask” “one git worktree per Claude session specifically to avoid this issue”
Comment from 6 Feb 2026 in “Claude Opus 4.6 extra usage promo” - Comment from 10 Apr 2026 in “We've raised $17M to build what comes after Git”
Less disk use than clones
“They are the right abstraction for people that do not want to relocate terabytes of their existing data”
Comment from 11 Sep 2026 in “Working with Git Worktrees in Magit” “They have separate reflogs, you'd still get separate directories, but less duplication.”
Comment from 1 Feb 2026 in “In Praise Of –Dry-Run” “It's very useful when your repos are a significant fraction of disk space.”
Comment from 8 Dec 2025 in “Jujutsu worktrees are convenient (2024)” - Comment from 11 Sep 2026 in “Working with Git Worktrees in Magit”
Shared git state, no push-pull
“It makes coordination easier. For eg if you want to fetch and pull master, you only have to do that once.”
Comment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree” “git 'knows' about all the associated branches, so you don't have to deal with pushing/pulling”
Comment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree” “I don't have to think about local vs upstream there's just one place to push”
Comment from 7 Jul 2026 in “Herdr: One terminal to rule them all” - Comment from 30 Jul 2026 in “Git worktrees are not an isolation boundary for coding agents”
Clean isolated working copies
“You get other things like mutual exclusion, a clean baseline regardless of whats in the main directory”
Comment from 11 Sep 2026 in “Working with Git Worktrees in Magit” “One thing I like about worktrees is that you get a clean copy”
Comment from 11 Sep 2026 in “Working with Git Worktrees in Magit” “worktrees provide a safe place to actually perform that work”
Comment from 30 Mar 2026 in “Ask HN: Is it actually possible to run multiple coding sessions in parallel?”
What people warn about
Each mark is one comment
Breaks environments, dependencies, submodules
“Sadly worktrees do some stuff with the git folder that's made one development environment we inherited incompatible.”
Comment from 3 Jun 2026 in “GitHub Copilot App” “Worktrees have a pitfall IMO that they don’t allow you to test changes in a running local env”
Comment from 10 Apr 2026 in “We've raised $17M to build what comes after Git” “still leaves you reinstalling node_modules per tree and fighting over a dev server port”
Comment from 1 Jun 2026 in “Rift: Better Alternative to Git Worktrees” - Comment from 4 Jun 2026 in “GitHub Copilot App”
- Comment from 21 Sep 2026 in “AX – Google’s Open Agentic Orchestrator”
Clunky, annoying to use
“This restriction of git worktrees is annoying but I just learned one simple rule to follow”
Comment from 8 Dec 2025 in “Jujutsu worktrees are convenient (2024)” “an awesome productivity multiplier, but with a terrible UX”
Comment from 11 Dec 2025 in “Worktrunk: Git worktree manager, designed for parallel agents” “orchestrating multiple agents with native tmux and git worktree does feel cumbersome”
Comment from 18 Mar 2026 in “Show HN: Tmux-IDE, OSS agent-first terminal IDE” - Comment from 30 Jul 2026 in “Show HN: A local merge queue for parallel Claude Code agents”
Poor fit for multiple repos
“agents increasingly work across multiple repos, and that's where (my approach to) worktrees broke down”
Comment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree” “Doesn't work. You need to mount both the worktree and the repo which defeats the point”
Comment from 31 May 2026 in “Local Git Remotes” “git worktrees are the right Git abstraction and the wrong abstraction for this problem”
Comment from 5 May 2026 in “Treat your coding agents like developers”
Other version control features people recommend
The four most recommended other version control features, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Mixed | Criticize | Approval | Months | Had for | Badge |
|---|---|---|---|---|---|---|---|
| Git worktreeThis page | 46 | 10 | 19 | 71% | 10 | — | Approved |
| git rebase | 21 | 2 | 11 | 66% | 8 | — | — |
| git rerere | 16 | 2 | 4 | 80% | 7 | — | Approved |
| git add -p | 11 | 2 | 4 | 73% | 6 | — | Approved |
| Git notes | 10 | 1 | 2 | 83% | 7 | — | Approved |
Also compared with Git submodules.
What people said
40 of the 80 opinions about it, picked in proportion to the three counts, newest first. Each links to the original comment.
“things get wonky once you consider processes and environments variables”
“They are the right abstraction for people that do not want to relocate terabytes of their existing data”
“You get other things like mutual exclusion, a clean baseline regardless of whats in the main directory”
“One thing I like about worktrees is that you get a clean copy”
“Worktrees are significantly faster to use and checkout than clones.”
“The main issue with worktrees is that you can't have the same branch opened in multiple worktrees which makes many things harder than the ought…”
“agents increasingly work across multiple repos, and that's where (my approach to) worktrees broke down”
“git 'knows' about all the associated branches, so you don't have to deal with pushing/pulling”
“It makes coordination easier. For eg if you want to fetch and pull master, you only have to do that once.”
“The big advantage of using worktrees is the shared git state”
“you have go through the annoyance of giving the local branches different names”
“Worktrees force you distinguish the "main" repo from the swarm of checkouts”
“I don't have to think about local vs upstream there's just one place to push”
“worktrees are cool, i find i need some bash aliases to like them as a human”
“To me that is exactly what mounting a branch would be. I use them a fair amount.”
“Worktrees don’t support git submodules and it’s killing me in my monorepo”
“Sadly worktrees do some stuff with the git folder that's made one development environment we inherited incompatible.”
“still leaves you reinstalling node_modules per tree and fighting over a dev server port”
“For most practical uses of same repo checking out different branches locally, worktrees are better.”
“Doesn't work. You need to mount both the worktree and the repo which defeats the point”
“git worktrees are the right Git abstraction and the wrong abstraction for this problem”
“Exactly, worktrees solve this problem, every "agentic IDE" uses them”
“Worktrees have a pitfall IMO that they don’t allow you to test changes in a running local env”
“git worktree is a pretty standard solution, straightforward to leverage in any IDE or AI harness worth its salt”
“worktrees provide a safe place to actually perform that work”
“orchestrating multiple agents with native tmux and git worktree does feel cumbersome”
“Agreed here’s a blog I read where I found out about Claude’s support”
“Git worktrees are a simple way to work on the same codebase in parallel”
“git worktrees in a VM are much faster over spinning up new containers”
“Check out the “brainstorming” skill and the “git worktrees” skill.”
“one git worktree per Claude session specifically to avoid this issue”
“They have separate reflogs, you'd still get separate directories, but less duplication.”
“With git worktrees you can you have your agents working on literally different folders”
“You give each agent a git worktree and if you want to check, you checkout their branch.”
“git worktrees is a semi-recent addition that may be nicer than your git archive setup”
“an awesome productivity multiplier, but with a terrible UX”
“git worktree' is adequate. Granted, self-hosted agents is a niche use case, but IMO…”
“It's very useful when your repos are a significant fraction of disk space.”
“This restriction of git worktrees is annoying but I just learned one simple rule to follow”
“if you need to do a "quick bug-fix and get back into the main thing" worktrees are really nice”
Counts come from 1,791,911 Hacker News comments labeled by Claude, November 2025 to October 2026, with data through October 31, 2026. Counts updated 2 Nov 2026. How we count. Report a mistake.