<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om" -->

---
title: Git Worktrees Tutorial #2 - Adding Git Worktrees | daily.dev
description: A hands-on walkthrough of Git worktrees covering how to add a new worktree with a new branch using `git worktree add -b`, navigate between multiple worktrees,...
canonical: https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Git Worktrees Tutorial #2 - Adding Git Worktrees | daily.dev
og:description: A hands-on walkthrough of Git worktrees covering how to add a new worktree with a new branch using `git worktree add -b`, navigate between multiple worktrees,...
og:url: https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om
og:image: https://api.daily.dev/og/posts/d3G6Fz0Om.png
og:image:alt: Git Worktrees Tutorial #2 - Adding Git Worktrees
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.

# Git Worktrees Tutorial #2 - Adding Git Worktrees

**[Net Ninja](https://daily.dev/sources/netninja)** · 7 min read · 2 upvotes · 0 comments

## Summary

A hands-on walkthrough of Git worktrees covering how to add a new worktree with a new branch using `git worktree add -b`, navigate between multiple worktrees, verify them with `git worktree list`, and remove them with `git worktree remove`. Also covers how to specify a starting branch (e.g., main) when creating a worktree, and how to force-remove a worktree with uncommitted changes. The lesson notes that removing a worktree does not delete the associated branch.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=5RB7RJ-d7Zk>

## Similar posts on daily.dev

- [Git worktrees are now cool](https://daily.dev/posts/git-worktrees-are-now-cool-vmd7dtmgv) · R-bloggers · 0 upvotes · 0 comments
- [What are git worktrees, and why should I use them?](https://daily.dev/posts/what-are-git-worktrees-and-why-should-i-use-them--cgprqx6wz) · GitHub Blog · 8 upvotes · 0 comments
- [Git Worktrees: Work on Multiple Branches Without Stashing](https://daily.dev/posts/git-worktrees-work-on-multiple-branches-without-stashing-rcu2lmqqk) · CircleCI · 25 upvotes · 8 comments

---

Tags: [#git](https://daily.dev/tags/git), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om)

```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":"TechArticle","headline":"Git Worktrees Tutorial #2 - Adding Git Worktrees","url":"https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om"},"datePublished":"2026-03-06T09:48:34.931Z","dateModified":"2026-03-06T09:48:51.763Z","description":"A hands-on walkthrough of Git worktrees covering how to add a new worktree with a new branch using `git worktree add -b`, navigate between multiple worktrees,...","image":"https://i.ytimg.com/vi/5RB7RJ-d7Zk/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/5RB7RJ-d7Zk/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Net Ninja","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Net Ninja","logo":"https://media.daily.dev/image/upload/s--IXsAE5jo--/f_auto/v1718348103/logos/netninja","url":"https://daily.dev/sources/netninja"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/git-worktrees-tutorial-2---adding-git-worktrees-d3g6fz0om","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"git,version-control","timeRequired":"PT7M","video":{"@type":"VideoObject","name":"Git Worktrees Tutorial #2 - Adding Git Worktrees","description":"A hands-on walkthrough of Git worktrees covering how to add a new worktree with a new branch using `git worktree add -b`, navigate between multiple worktrees,...","thumbnailUrl":"https://i.ytimg.com/vi/5RB7RJ-d7Zk/sddefault.jpg","uploadDate":"2026-03-06T09:48:34.931Z","duration":"PT7M","url":"https://api.daily.dev/r/d3G6Fz0Om","embedUrl":"https://www.youtube.com/embed/5RB7RJ-d7Zk"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Net Ninja","item":"https://daily.dev/sources/netninja"},{"@type":"ListItem","position":3,"name":"Git Worktrees Tutorial #2 - Adding Git Worktrees"}]}
```

