git-worktree

Manage Git worktrees for parallel development tasks.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/CuriousCrow123/godot-compound --skill git-worktree-curiouscrow123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/CuriousCrow123/godot-compound/tree/main/skills/git-worktree
Command: npx skills add https://github.com/CuriousCrow123/godot-compound --skill git-worktree-curiouscrow123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Efficiently manage Git worktrees to enable isolated parallel development, reducing context switching and merge conflicts.

Core Features & Use Cases

  • Create worktrees from main with clear branch names and automatic .env management.
  • List worktrees with their status, current branch, and easy switching between them.
  • Switch between worktrees and cleanup completed ones with interactive prompts.
  • Automatically update .gitignore to include the .worktrees directory and copy environment files from the main repo.

Quick Start

Use the worktree-manager.sh script to create a new feature worktree from main.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I manage Git worktrees for parallel development without switching branches?

You can manage Git worktrees for parallel development by using a single manager script to create isolated worktrees from main, list their status, switch between them, and clean up completed ones with interactive prompts.

What is the best way to automate Git worktree cleanup and environment file setup?

The best way to automate Git worktree setup is using a manager script that creates worktrees from main, automatically updates .gitignore for the .worktrees directory, and copies environment files from the main repo with safety guardrails.

Can I use a single script to create, list, and switch between multiple Git worktrees?

Yes, you can use a single manager script to create worktrees from main with clear branch names, list them with their current branch status, and switch between them interactively for isolated feature development.

Does Git worktree management handle copying .env files automatically for new branches?

Git worktree management handles copying .env files automatically by copying environment files from the main repo into newly created worktrees, ensuring isolated parallel development tasks have the correct configuration.

How do I prevent merge conflicts when reviewing code across multiple isolated worktrees?

You can prevent merge conflicts across isolated worktrees by using a manager script to keep environments separated, update the main repo, and interactively clean up completed worktrees before switching contexts.

What are the limitations of managing parallel development tasks with Git worktrees?

Limitations of managing parallel development with Git worktrees include needing manual oversight for interactive safety prompts during cleanup and ensuring the main repo's environment files are correctly configured before copying.