git-worktree

Create, list, switch, and clean up Git worktrees with .env copying.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/VitaDynamics/vita-cc-market --skill git-worktree-vitadynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/VitaDynamics/vita-cc-market/tree/main/plugins/Vengineer/skills/git-worktree
Command: npx skills add https://github.com/VitaDynamics/vita-cc-market --skill git-worktree-vitadynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the management of Git worktrees, providing an isolated and efficient way to handle parallel development, code reviews, and feature branching without the overhead of traditional methods.

Core Features & Use Cases

  • Streamlined Worktree Management: Create, list, switch, and clean up Git worktrees using a single, intuitive script.
  • Isolated Development Environments: Work on multiple features or review pull requests in separate, clean environments.
  • Automatic .env Handling: Ensures environment variables are correctly copied to new worktrees, preventing configuration issues.
  • Use Case: When reviewing a pull request, if you're not on the PR's branch, this skill can create an isolated worktree for you to review the code without affecting your current work.

Quick Start

Use the git-worktree skill to create a new worktree for the feature branch named 'new-login-flow'.

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 feature development?

Manage Git worktrees by using a single script to create, list, switch, and clean up isolated development branches. This allows you to handle multiple features simultaneously without disrupting your current working directory.

What is the best way to review a pull request without affecting my current Git branch?

The best way to review a pull request is to create an isolated Git worktree. This generates a clean environment for the PR branch, allowing you to review code without impacting your ongoing feature development.

How does .env file handling work when creating a new Git worktree?

Environment file handling works by automatically copying your .env variables into new Git worktrees. This prevents configuration issues and ensures the isolated environment has all necessary settings from the start.

Can I use Git worktrees to isolate code reviews from my main branch?

Yes, you can use Git worktrees to isolate code reviews from your main branch. This creates a separate directory for the pull request, allowing you to test and review changes without affecting your primary workspace.

How to clean up Git worktrees after finishing a feature branch?

Clean up Git worktrees after finishing a feature branch using the dedicated cleanup command. This removes the isolated directory and manages .gitignore entries, keeping your repository organized and free of unused workspaces.