git-worktrees

Create, list, move between, and remove git worktrees for parallel development.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/Smooth-Operation/household-expense-tracker --skill git-worktrees-smooth-operation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktrees
Source: https://github.com/Smooth-Operation/household-expense-tracker/tree/main/.claude/skills/workflow/git-worktrees
Command: npx skills add https://github.com/Smooth-Operation/household-expense-tracker --skill git-worktrees-smooth-operation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables parallel feature development by using git worktrees to maintain multiple working directories from the same repository, eliminating constant branch switching and the need to stash changes between tasks.

Core Features & Use Cases

  • Multiple working directories: Have different branches checked out simultaneously without switching back and forth.
  • Isolated testing: Run tests for one feature while another is in progress.
  • Efficient context switching: Jump between worktrees with simple cd commands.

Quick Start

Create a new worktree for a feature: git worktree add ../project-feature feature/feature-name

Frequently Asked Questions about git-worktrees

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I work on multiple git branches at the same time without switching?

Git worktrees enable parallel feature development by maintaining multiple working directories from a single repository, eliminating constant branch switching and the need to stash changes between tasks.

What is the best way to run isolated tests for one feature while another is in progress?

Using git worktrees provides isolated testing environments by checking out different branches simultaneously in separate directories, allowing you to run tests for one feature while keeping another worktree in progress.

How do I create a new worktree for a feature branch?

To create a new worktree for a feature, use the command git worktree add followed by the target directory path and feature branch name, setting up an isolated working directory for that specific task.

How does workspace isolation help with efficient context switching in git?

Workspace isolation through git worktrees allows efficient context switching by letting you jump between separate working directories with simple cd commands, avoiding the overhead of Git branch switching.

Can standard git workflows integrate with multiple working directories?

Yes, git worktrees integrate with standard Git workflows by allowing you to create, list, move between, and remove worktrees while maintaining your normal branching and merging processes across isolated directories.

When should I not use git worktrees for parallel development?

You should avoid git worktrees if your development context requires frequent cross-branch file sharing within a single directory, as worktrees enforce strict workspace isolation by keeping branch files in separate locations.