<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/gznbkkzvr" -->

---
title: most devs ignore git worktree. heres why theyre wrong
description: git worktree is a built-in Git feature that lets you check out multiple branches simultaneously in separate directories, all sharing the same .git folder....
canonical: https://daily.dev/posts/gznbkkzvr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: most devs ignore git worktree. heres why theyre wrong | daily.dev
og:description: git worktree is a built-in Git feature that lets you check out multiple branches simultaneously in separate directories, all sharing the same .git folder....
og:url: https://daily.dev/posts/gznbkkzvr
og:image: https://api.daily.dev/og/posts/gZNBkKzVr.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# most devs ignore git worktree. heres why theyre wrong

**[George Ongoro](https://daily.dev/sources/jcfnztlpnztfifdlcbjrk)** · [@georgeongoro](https://daily.dev/georgeongoro) · 180 upvotes · 42 comments

## Summary

git worktree is a built-in Git feature that lets you check out multiple branches simultaneously in separate directories, all sharing the same .git folder. Instead of stashing changes and losing context when switching branches, you can run parallel workspaces side by side. Practical use cases include keeping a long build running while coding a new feature, reviewing PR branches without touching your main workspace, and testing deployment scripts across branches at the same time. It requires no installation and is available in every Git installation, yet most developers never use it.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.ongoro.top/post/most-devs-ignore-git-worktree-heres-why-theyre-wrong>

## Community discussion

Top comments from developers on daily.dev.

**@fabianletsch** · 39 upvotes

> **I don’t use worktrees because they don’t align with my workflow.**
>
> For practical reasons, my system only allows me to run one application at a time. Even if I set up multiple worktrees, I can only actively work in one at any given moment, which defeats the entire purpose of having separate worktrees in the first place. Since I can’t parallelize my work, the overhead of managing worktrees doesn’t provide any meaningful benefit for my setup.

**@paulmarc** · 17 upvotes

> I keep learning new things, I like it ;)

**@tekn0wledg** · 16 upvotes

> I don't like worktrees because if I'm trying to make a quick local change, I have to go find the correct local directory where it's located.
>
> That might seem small, but if I have 6 different projects I'm working on simultaneously, that little bit of additional overhead slows me down.
>
> That said, I have definitely used worktrees in specific cases, and for those it has worked well. Just not my everyday methodology.

**@manhvu** · 13 upvotes

> I feel like worktree is only suitable when you are using AI to do many changes in parallel, and it is a lot of mental burden

**@justinfrancis1** · 12 upvotes

> This is great thanks!
>
> I applied this to one of my repos already that had 4 feature branches.
>
> Here’s how I laid it out:
>
> ~/repo/worktree
>
> …. repo_name/
>
> …….. main/
>
> …….. feature_1/
>
> …..… feature_2/
>
> ..…… feature_3/
>
> This keeps everything clean and all directories are named the same as the branches. Only the container directory holds the repo name. :-)

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/gznbkkzvr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/gznbkkzvr","headline":"most devs ignore git worktree. heres why theyre wrong","text":"Shared: most devs ignore git worktree. heres why theyre wrong","url":"https://daily.dev/posts/gznbkkzvr","datePublished":"2026-04-19T06:24:22.826Z","dateModified":"2026-04-19T06:25:32.571Z","author":{"@type":"Person","name":"George Ongoro","url":"https://daily.dev/georgeongoro","image":"https://media.daily.dev/image/upload/s--jXl_MleY--/f_auto/v1779359556/avatars/avatar_JCfNZtLPNzTFifdLCBjRk?_a=BAMAMiWQ0","description":"Full-Stack Engineer | Go & TypeScript | Shipping production software, open-source CLIs, and systems","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5530}},"image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":180},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":42}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/26A4X782X"},"comment":[{"@type":"Comment","text":"I don’t use worktrees because they don’t align with my workflow.\nFor practical reasons, my system only allows me to run one application at a time. Even if I set up multiple worktrees, I can only actively work in one at any given moment, which defeats the entire purpose of having separate worktrees in the first place. Since I can’t parallelize my work, the overhead of managing worktrees doesn’t provide any meaningful benefit for my setup.","datePublished":"2026-04-19T13:16:56.072Z","url":"https://daily.dev/posts/gZNBkKzVr#c-AKABy90ev","author":{"@type":"Person","name":"Fabian Letsch","url":"https://daily.dev/fabianletsch","image":"https://lh3.googleusercontent.com/a/ACg8ocKR6BVy_wn23EoOKq7-BlszlcXcLmASlnb7l-GtS-q1bePnkaJf=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":39}},{"@type":"Comment","text":"I keep learning new things, I like it ;)","datePublished":"2026-04-20T08:38:03.826Z","url":"https://daily.dev/posts/gZNBkKzVr#c-VSfFG3bMI","author":{"@type":"Person","name":"paulmarc","url":"https://daily.dev/paulmarc","image":"https://media.daily.dev/image/upload/s--yFutR-QN--/f_auto/v1737446314/avatars/avatar_iHStoImiuFyQFvwEddWek"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17}},{"@type":"Comment","text":"I don’t like worktrees because if I’m trying to make a quick local change, I have to go find the correct local directory where it’s located.\nThat might seem small, but if I have 6 different projects I’m working on simultaneously, that little bit of additional overhead slows me down.\nThat said, I have definitely used worktrees in specific cases, and for those it has worked well. Just not my everyday methodology.","datePublished":"2026-04-20T13:53:31.508Z","url":"https://daily.dev/posts/gZNBkKzVr#c-mWabZYcCE","author":{"@type":"Person","name":"Scott Davis","url":"https://daily.dev/tekn0wledg","image":"https://avatars.githubusercontent.com/u/355212?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16}},{"@type":"Comment","text":"I feel like worktree is only suitable when you are using AI to do many changes in parallel, and it is a lot of mental burden","datePublished":"2026-04-20T17:47:21.094Z","url":"https://daily.dev/posts/gZNBkKzVr#c-S8britwCS","author":{"@type":"Person","name":"Manh Vu","url":"https://daily.dev/manhvu","image":"https://media.daily.dev/image/upload/s--5d8jwUCj--/f_auto,q_auto/v1702869855/avatars/avatar_akX4XqYkudufgz6UDxJv7"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":13}},{"@type":"Comment","text":"This is great thanks!\nI applied this to one of my repos already that had 4 feature branches.\nHere’s how I laid it out:\n~/repo/worktree\n…. repo_name/\n……… main/\n……… feature_1/\n……… feature_2/\n……… feature_3/\nThis keeps everything clean and all directories are named the same as the branches. Only the container directory holds the repo name. :-)","datePublished":"2026-04-20T21:43:59.748Z","dateModified":"2026-04-20T21:46:20.767Z","url":"https://daily.dev/posts/gZNBkKzVr#c-88LsqLnqO","author":{"@type":"Person","name":"Justin Francis","url":"https://daily.dev/justinfrancis1","image":"https://lh3.googleusercontent.com/a/ACg8ocK3W7FZO_pv13ue_q20QSkUjZgwQvKepJBzIyaTt6QSWEfEkw=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/jcfnztlpnztfifdlcbjrk","name":"George Ongoro"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"George Ongoro","item":"https://daily.dev/sources/jcfnztlpnztfifdlcbjrk"},{"@type":"ListItem","position":3,"name":"most devs ignore git worktree. heres why theyre wrong"}]}
```

