using-git-worktrees

Create isolated git worktrees for feature branches with safety checks.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/cooopmac/nourish --skill using-git-worktrees-cooopmac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/cooopmac/nourish/tree/main/.claude/project/skills/using-git-worktrees
Command: npx skills add https://github.com/cooopmac/nourish --skill using-git-worktrees-cooopmac

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage feature work by creating isolated git worktrees, ensuring safe and organized development without workspace conflicts.

Core Features & Use Cases

  • Isolated Workspaces: Create isolated git worktrees for feature development.
  • Smart Directory Selection: Selects the most appropriate directory for worktrees based on system configuration.
  • Safety Verification: Verifies .gitignore to prevent accidental commits and ensures clean baselines.
  • Use Case: When you need to work on a new feature in a separate branch, without affecting the main workspace.

Quick Start

Use the using-git-worktrees skill to create an isolated workspace for the 'feature/auth' branch.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I create an isolated git workspace for a new feature branch?

To create an isolated git workspace, you can use git worktrees to generate a separate directory for your feature branch, keeping your main workspace unaffected during development.

What are git worktrees and when should I use them for development?

Git worktrees are linked working directories allowing simultaneous branch checkouts. Use them to isolate feature development, preventing workspace conflicts and maintaining clean baselines across tasks.

How do I verify .gitignore before switching branches with git worktrees?

Verifying .gitignore before switching branches ensures accidental commits are prevented. This safety check maintains a clean baseline by confirming ignored files remain excluded across isolated worktrees.

Does git worktree management require manual directory configuration?

Git worktree management does not require manual directory configuration. The system selects the most appropriate directory automatically based on your system configuration and project setup.

Why use git worktrees instead of cloning a repository for feature isolation?

Using git worktrees instead of cloning shares a single repository history, saving disk space and synchronization overhead while providing isolated working directories for safe feature development.

What limitations or safety checks apply when creating isolated feature workspaces?

Safety checks for isolated feature workspaces include verifying .gitignore rules and confirming directory integrity to prevent accidental commits, ensuring the baseline remains clean for development.