using-git-worktrees

error: The operation was aborted because of a lack of available memory or because of a conflicting Flink</tagline>

6|Updated Jan 14, 2020
One-click install
npx skills add https://github.com/SteamedFish/dotfiles --skill using-git-worktrees-steamedfish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/SteamedFish/dotfiles/tree/main/.config/opencode/skills/superpowers/using-git-worktrees
Command: npx skills add https://github.com/SteamedFish/dotfiles --skill using-git-worktrees-steamedfish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you create isolated development environments using Git worktrees, ensuring a clean separation between different branches of work without the overhead of managing multiple repositories.

Core Features & Use Cases

  • Isolated Workspaces: Work on multiple features or bug fixes simultaneously without context switching.
  • Smart Directory Selection: Automatically determines the best location for new worktrees based on project conventions or user preference.
  • Safety Verification: Ensures that new worktree directories are properly ignored by Git to prevent accidental commits.
  • Automated Setup: Runs project-specific setup commands (e.g., npm install, cargo build) and verifies a clean baseline with tests.
  • Use Case: When starting a new feature, use this Skill to create a dedicated worktree, ensuring your main branch remains stable and your new work is self-contained.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the 'new-feature' 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 isolated Git worktrees for parallel feature development?

To create isolated Git worktrees for parallel feature development, this Skill intelligently selects directories, verifies ignore rules, runs project-specific setup commands, and executes baseline tests to ensure a clean workspace.

What is the best way to manage multiple Git branches without switching context constantly?

Using Git worktrees is the best way to manage multiple branches without context switching, providing isolated workspaces for simultaneous feature development or bug fixes while keeping your main branch stable.

Does Git worktree setup automatically run project build commands like npm install?

Yes, Git worktree setup automatically runs project-specific build commands like npm install or cargo build and verifies a clean baseline with tests immediately after creating the isolated directory.

How do I prevent accidental commits when creating new Git worktree directories?

To prevent accidental commits in new Git worktree directories, this Skill performs safety verification to ensure that new worktree locations are properly ignored by Git rules before development begins.

Can I use Git worktrees to isolate bug fixes while keeping my main branch stable?

Yes, you can use Git worktrees to isolate bug fixes in a dedicated directory, ensuring your main branch remains stable and your new work is self-contained without managing multiple repositories.

How does smart directory selection work for Git worktrees?

Smart directory selection for Git worktrees automatically determines the best location for new worktrees based on project conventions or user preference, managing both project-local and global worktree locations.