using-git-worktrees

Create isolated git worktrees with safety checks before switching branches.

11|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/EvoClaw/amplify --skill using-git-worktrees-evoclaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/EvoClaw/amplify/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/EvoClaw/amplify --skill using-git-worktrees-evoclaw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolate development work from the main repository by using git worktrees, preventing cross-branch contamination and enabling parallel experimentation.

Core Features & Use Cases

  • Priority-based worktree selection (project-local .worktrees or global location) with automatic fallback.
  • Safety verification to ensure worktrees are ignored by gitignore and do not pollute the repository.
  • Guided creation and setup steps for local and global worktrees, with optional CLAUDE.md preferences to steer location.

Quick Start

Instruct me to set up an isolated git worktree for the current project.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I isolate development work from my main git repository?

Git worktrees isolate development work by creating separate working directories linked to the same repository, preventing cross-branch contamination. This enables parallel experimentation without switching branches in your primary workspace.

How do I set up a git worktree safely without polluting the repository?

Safe git worktree setup requires verifying the worktree directory is ignored by gitignore to prevent repository pollution. You should also perform baseline validation and apply automated setup steps before switching branches.

What is the best way to manage multiple git worktree locations?

Managing git worktree locations uses priority-based selection, defaulting to a project-local .worktrees directory with automatic fallback to a global location. You can optionally use CLAUDE.md directives to guide the choice.

Can I use guided steps to create local and global git worktrees?

Yes, guided creation and setup steps support both local and global git worktrees. The process includes safety verification, baseline validation, and optional CLAUDE.md preferences to steer the worktree location automatically.

Why do I need to verify gitignore before creating a git worktree?

Verifying gitignore before creating a git worktree ensures the isolated workspace directory is ignored by git, preventing cross-branch contamination and keeping the main repository clean from untracked worktree files.

When should I not use git worktrees for parallel development?

Git worktrees are not ideal if your project lacks proper gitignore support for the worktree directory or if baseline validation fails, as this risks polluting the main repository with untracked development files.