git-worktrees

Manage parallel Git worktrees across multiple branches with git-wt.

1|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/mattg101/SolidLink --skill git-worktrees-mattg101
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktrees
Source: https://github.com/mattg101/SolidLink/tree/main/docs/dev/.agent/skills/git-worktrees
Command: npx skills add https://github.com/mattg101/SolidLink --skill git-worktrees-mattg101

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you work on multiple branches simultaneously without the overhead of context switching or dealing with merge conflicts, streamlining parallel development efforts.

Core Features & Use Cases

  • Parallel Branch Development: Maintain separate working directories for different branches.
  • Context Switching Avoidance: Easily switch between tasks without disrupting your current work.
  • Use Case: You need to fix a critical bug on the main branch while also working on a new feature in a feature/new-ui branch. This Skill allows you to have both checked out in separate directories and switch between them seamlessly.

Quick Start

Use the git worktrees skill to create a new worktree for the 'develop' branch.

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 stashing?

Use the git worktree command to create isolated working directories for parallel development. This allows you to check out multiple branches simultaneously, enabling seamless context switching between tasks like bug fixes and feature development without stashing.

What is parallel development in Git and when do I need it?

Parallel development in Git is maintaining separate working directories for different branches concurrently. You need it when context switching between tasks, such as fixing a critical bug on the main branch while continuing feature development in a separate directory without disruption.

How do I create a new worktree for an existing branch?

Create a new worktree by using the git-wt helper tool to set up an isolated working directory for your specified branch. The skill supports configuration options for the base directory and file copying behavior to streamline this setup process.

Can I safely delete Git worktrees and their associated branches?

Yes, you can safely delete Git worktrees and their associated branches using the git-wt helper tool. The skill facilitates safe deletion of isolated development environments, ensuring clean removal of concurrent task setups without affecting the main repository.

Does the git-wt helper tool work without additional dependencies?

Yes, the git-wt helper tool works without additional dependencies. It leverages the native git worktree command to manage isolated development environments, allowing you to configure base directories and file copying behavior independently.

What is the best way to avoid merge conflicts when switching between tasks?

The best way to avoid merge conflicts during task switching is using Git worktrees to maintain separate working directories for each branch. This approach completely isolates concurrent development efforts, preventing file overwrites and merge conflicts.