git-worktree

Automate creation and management of isolated worktrees in a bare repository.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/williamw/agent-skills --skill git-worktree-williamw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/williamw/agent-skills/tree/main/skills/git-worktree
Command: npx skills add https://github.com/williamw/agent-skills --skill git-worktree-williamw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a workflow for creating isolated worktrees from a bare repository, allowing for parallel development on different features or branches without interference.

Core Features & Use Cases

  • Isolated Worktrees: Create separate worktrees for each feature branch, ensuring that changes do not interfere with each other.
  • Bare Repo Compatibility: Works with repositories using a bare repo layout, where all development happens inside worktree subdirectories.
  • Branch Management: Supports creating new branches or checking out existing remote branches into isolated worktrees.

Quick Start

Create a new worktree for the 'feature-branch' from the 'main' branch using the git-worktree skill.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I set up git worktrees for parallel development?

Git worktrees allow parallel development by creating isolated working directories from a single repository. This Skill automates creating, listing, and removing worktrees within a bare repo layout to support concurrent feature branches without interference.

What is a bare repo layout and why use it with git worktrees?

A bare repo layout stores repository data without a working directory. Using it with git worktrees ensures all development happens inside isolated subdirectories, preventing branch interference and streamlining parallel feature development.

Can I manage existing remote branches using git worktrees?

Yes, branch management with git worktrees supports creating new branches and checking out existing remote branches into isolated directories. This allows developers to seamlessly switch between feature tasks without disrupting the main workspace.

Does git worktree management require any specific dependencies?

Git worktree management requires the git version control system to function. Optionally, it can use gh-wt to provide enhanced functionality and an improved workflow for managing isolated development directories.

What is the best way to handle isolated feature branches without interference?

The best way to handle isolated feature branches is using a bare repository with git worktrees. This setup provides separate directories for each branch, ensuring changes do not interfere with each other during parallel development.

How do I remove a git worktree when feature development is complete?

To remove a git worktree, you can use the management workflow provided by this Skill, which includes functionality for listing and safely removing isolated worktrees once parallel development on a specific branch is finished.