wt

Manage Git worktrees for isolated parallel development within a project.

2|Updated Aug 8, 2024
One-click install
npx skills add https://github.com/walid-mos/mac-config --skill wt-walid-mos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wt
Source: https://github.com/walid-mos/mac-config/tree/main/claude/.claude/skills/worktree
Command: npx skills add https://github.com/walid-mos/mac-config --skill wt-walid-mos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the management of Git worktrees, allowing for isolated development environments without the overhead of separate repositories.

Core Features & Use Cases

  • Worktree Creation: Easily create new worktrees for specific branches, automatically creating the branch if it doesn't exist.
  • Worktree Switching: Seamlessly switch between different worktree environments.
  • Worktree Cleanup: Remove old or unnecessary worktrees efficiently.
  • Use Case: Develop multiple features concurrently by creating a separate worktree for each feature branch, keeping your main branch clean and stable.

Quick Start

Create a new worktree for the 'new-feature' branch and automatically navigate into it.

Frequently Asked Questions about wt

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

FAQPage Schema
How do I manage git worktrees for isolated parallel development?

To manage git worktrees for isolated parallel development, you can use a shell function to create, switch, list, and remove worktrees from specified branches, keeping your main branch clean without needing separate repositories.

What is the best way to develop multiple git branches concurrently?

The best way to develop multiple git branches concurrently is by creating a separate worktree for each feature branch, allowing you to work on isolated environments within the same project simultaneously.

How do I create a new worktree from a specified git branch?

You can create a new worktree from a specified git branch by executing the worktree creation command, which automatically creates the branch if it doesn't already exist and sets up the isolated environment.

Can I automate git worktree switching and cleanup without user prompts?

Yes, you can automate git worktree switching and cleanup without user prompts by providing the '-y' flag, which forces the shell function to operate non-interactively for seamless automation.

How do I check git status across all worktrees?

You can check git status across all worktrees by using the list and status display features, which show all existing worktree environments and their current git tracking states within your project.