Hacker ApprovedDepartments

Git worktree

Hacker Approved

The 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

Each figure is one person. RecommendsMixed feelingsCriticizes

Recommended in 10 of 12 months

In 35 different threads.

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. 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”
  • 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)”
  • 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”
  • 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”
  • 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”
  • 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.

Git worktree compared with 4 alternatives
ProductRecommendMixedCriticizeApprovalMonthsHad forBadge
Git worktreeThis page46101971%10—Approved
git rebase2121166%8——
git rerere162480%7—Approved
git add -p112473%6—Approved
Git notes101283%7—Approved
See all 9 version control features, ranked

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”

CriticizesComment from 21 Sep 2026 in “AX – Google’s Open Agentic Orchestrator”

“They are the right abstraction for people that do not want to relocate terabytes of their existing data”

RecommendsComment from 11 Sep 2026 in “Working with Git Worktrees in Magit”

“You get other things like mutual exclusion, a clean baseline regardless of whats in the main directory”

MixedComment from 11 Sep 2026 in “Working with Git Worktrees in Magit”

“One thing I like about worktrees is that you get a clean copy”

RecommendsComment from 11 Sep 2026 in “Working with Git Worktrees in Magit”

“Worktrees are significantly faster to use and checkout than clones.”

RecommendsComment from 11 Sep 2026 in “Working with Git Worktrees in Magit”

“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…”

MixedComment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree”

“agents increasingly work across multiple repos, and that's where (my approach to) worktrees broke down”

CriticizesComment 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”

RecommendsComment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree”

“It makes coordination easier. For eg if you want to fetch and pull master, you only have to do that once.”

RecommendsComment from 24 Aug 2026 in “Parallel development without the headaches using Git worktree”

“The big advantage of using worktrees is the shared git state”

RecommendsComment from 30 Jul 2026 in “Git worktrees are not an isolation boundary for coding agents”

“you have go through the annoyance of giving the local branches different names”

CriticizesComment from 30 Jul 2026 in “Show HN: A local merge queue for parallel Claude Code agents”

“Worktrees force you distinguish the "main" repo from the swarm of checkouts”

RecommendsComment from 30 Jul 2026 in “Show HN: A local merge queue for parallel Claude Code agents”

“I don't have to think about local vs upstream there's just one place to push”

RecommendsComment from 7 Jul 2026 in “Herdr: One terminal to rule them all”

“worktrees are cool, i find i need some bash aliases to like them as a human”

MixedComment from 23 Jun 2026 in “Git is forever. I'm building Oak anyways”

“To me that is exactly what mounting a branch would be. I use them a fair amount.”

RecommendsComment from 22 Jun 2026 in “Git is forever. I'm building Oak anyways”

“Worktrees don’t support git submodules and it’s killing me in my monorepo”

CriticizesComment from 4 Jun 2026 in “GitHub Copilot App”

“Sadly worktrees do some stuff with the git folder that's made one development environment we inherited incompatible.”

CriticizesComment from 3 Jun 2026 in “GitHub Copilot App”

“still leaves you reinstalling node_modules per tree and fighting over a dev server port”

CriticizesComment from 1 Jun 2026 in “Rift: Better Alternative to Git Worktrees”

“For most practical uses of same repo checking out different branches locally, worktrees are better.”

RecommendsComment from 31 May 2026 in “Local Git Remotes”

“Doesn't work. You need to mount both the worktree and the repo which defeats the point”

CriticizesComment from 31 May 2026 in “Local Git Remotes”

“git worktrees are the right Git abstraction and the wrong abstraction for this problem”

CriticizesComment from 5 May 2026 in “Treat your coding agents like developers”

“Exactly, worktrees solve this problem, every "agentic IDE" uses them”

RecommendsComment from 10 Apr 2026 in “We've raised $17M to build what comes after Git”

“Worktrees have a pitfall IMO that they don’t allow you to test changes in a running local env”

CriticizesComment from 10 Apr 2026 in “We've raised $17M to build what comes after Git”

“git worktree is a pretty standard solution, straightforward to leverage in any IDE or AI harness worth its salt”

RecommendsComment from 6 Apr 2026 in “Show HN: Modo – Open-source AI IDE that plans before it codes (spec-driven dev)”

“worktrees provide a safe place to actually perform that work”

RecommendsComment from 30 Mar 2026 in “Ask HN: Is it actually possible to run multiple coding sessions in parallel?”

“orchestrating multiple agents with native tmux and git worktree does feel cumbersome”

CriticizesComment from 18 Mar 2026 in “Show HN: Tmux-IDE, OSS agent-first terminal IDE”

“Agreed here’s a blog I read where I found out about Claude’s support”

RecommendsComment from 3 Mar 2026 on Hacker News

“Git worktrees are a simple way to work on the same codebase in parallel”

RecommendsComment from 19 Feb 2026 in “Ask HN: Any AI / Agent power users out there? Do you have any tips?”

“git worktrees in a VM are much faster over spinning up new containers”

RecommendsComment from 16 Feb 2026 in “Show HN: Kubernetes for AI Agents”

“Check out the “brainstorming” skill and the “git worktrees” skill.”

RecommendsComment from 15 Feb 2026 in “Ask HN: Why is my Claude experience so bad? What am I doing wrong?”

“one git worktree per Claude session specifically to avoid this issue”

RecommendsComment from 6 Feb 2026 in “Claude Opus 4.6 extra usage promo”

“They have separate reflogs, you'd still get separate directories, but less duplication.”

RecommendsComment from 1 Feb 2026 in “In Praise Of –Dry-Run”

“With git worktrees you can you have your agents working on literally different folders”

RecommendsComment from 25 Jan 2026 in “Coding assistants are slow. So we multitask”

“You give each agent a git worktree and if you want to check, you checkout their branch.”

RecommendsComment from 7 Jan 2026 in “The creator of Claude Code's Claude setup”

“git worktrees is a semi-recent addition that may be nicer than your git archive setup”

RecommendsComment from 27 Dec 2025 in “Pre-commit hooks are fundamentally broken”

“an awesome productivity multiplier, but with a terrible UX”

MixedComment from 11 Dec 2025 in “Worktrunk: Git worktree manager, designed for parallel agents”

“git worktree' is adequate. Granted, self-hosted agents is a niche use case, but IMO…”

RecommendsComment from 9 Dec 2025 in “Jujutsu worktrees are convenient (2024)”

“It's very useful when your repos are a significant fraction of disk space.”

RecommendsComment from 8 Dec 2025 in “Jujutsu worktrees are convenient (2024)”

“This restriction of git worktrees is annoying but I just learned one simple rule to follow”

MixedComment from 8 Dec 2025 in “Jujutsu worktrees are convenient (2024)”

“if you need to do a "quick bug-fix and get back into the main thing" worktrees are really nice”

RecommendsComment from 8 Dec 2025 in “Jujutsu worktrees are convenient (2024)”

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.