using-git-worktrees

Create isolated git worktrees with safety checks and selectable locations.

3|Updated Jun 3, 2022
One-click install
npx skills add https://github.com/Hohlas/SoSimple --skill using-git-worktrees-hohlas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Hohlas/SoSimple/tree/main/.kilocode/skills/using-git-worktrees
Command: npx skills add https://github.com/Hohlas/SoSimple --skill using-git-worktrees-hohlas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolates feature work by creating dedicated git worktrees connected to the same repository, preventing workspace contamination and enabling concurrent development.

Core Features & Use Cases

  • Creates isolated workspaces with safe directory selection and automatic setup checks.
  • Supports choosing between project-local (.worktrees or worktrees) and global locations, with safety verification to avoid accidental commits.
  • Use cases include starting a new feature branch, testing changes in an isolated context, and preserving the main workspace while exploring experiments.

Quick Start

Create an isolated git worktree for the current project, verify ignore rules, and switch to the new workspace.

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 worktree for concurrent feature development?

You can create an isolated git worktree by generating a dedicated directory connected to your main repository, allowing you to start multiple feature branches concurrently without contaminating your primary workspace.

What is the best way to prevent workspace contamination when testing git branches?

The best way to prevent workspace contamination is by using isolated git worktrees, which provide separate directories for testing changes while preserving the main workspace during experiments.

Can I choose a custom location for my git worktree directory?

Yes, you can select between project-local directories like .worktrees or worktrees and global locations, with safety verification checks applied to ensure your worktree is created safely and avoids accidental commits.

Does git worktree creation verify ignore rules automatically?

Yes, git worktree creation includes ignore verification to automatically check your ignore rules, ensuring the new workspace maintains a clean baseline and preventing unintended files from being committed.

Why do I need safety checks when adding a new git worktree?

You need safety checks when adding a git worktree to verify the selected directory location and prevent accidental commits, ensuring your isolated feature work does not disrupt the main repository baseline.