git-worktree

Create, list, and remove Git worktrees from the repository root.

291|38|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/J-Pster/Psters_AI_Workflow --skill git-worktree-j-pster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/J-Pster/Psters_AI_Workflow/tree/main/plugins/psters-ai-workflow/skills/git-worktree
Command: npx skills add https://github.com/J-Pster/Psters_AI_Workflow --skill git-worktree-j-pster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees solve the problem of editing multiple branches in parallel without switching the main working directory, enabling isolated development while sharing the same repository history.

Core Features & Use Cases

  • Create and manage worktrees from the repository root.
  • List existing worktrees to monitor parallel development.
  • Remove worktrees safely after finishing work.
  • Enforce branch closure discipline to merge, push, or discard changes.

Quick Start

From the repository root, create a new worktree for your feature branch, then navigate into the new directory to begin work.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I work on multiple Git branches in parallel without switching directories?

Git worktrees let you run multiple branches in separate directories without switching the main repository, sharing the same history for isolated parallel development. Create worktrees from the repository root to begin feature work.

How do I create and list Git worktrees from my repository root?

To create and list Git worktrees, run commands from your repository root to generate separate directories for feature branches. You can then list existing worktrees to monitor parallel development across the project.

What is the best way to manage branch closure after finishing work in a worktree?

The best way to manage branch closure is to enforce a workflow that includes merging, pushing, or discarding changes. Once your parallel feature work is complete, safely remove the worktree from the repository root after finalizing the branch.

When do I need to use a worktree for isolated testing across branches?

You need a worktree for isolated testing when your software project requires parallel feature work without disrupting the main working directory. This allows you to run and test multiple branches simultaneously while sharing repository history.

Does git worktree work for parallel version-control in a monorepo?

Yes, Git worktrees support parallel version-control in a monorepo by allowing you to manage isolated directories for different branches from a single repository root. This enables running multiple branches simultaneously without switching the main repository.