worktree-create

Create and attach Git worktrees using gwq commands.

Updated Jan 26, 2013
One-click install
npx skills add https://github.com/boxp/dotfiles --skill worktree-create-boxp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree-create
Source: https://github.com/boxp/dotfiles/tree/main/.claude/skills/worktree-create
Command: npx skills add https://github.com/boxp/dotfiles --skill worktree-create-boxp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and integration of Git worktrees using gwq, streamlining multi-branch development and reducing manual path management and context switching.

Core Features & Use Cases

  • Create a new worktree and attach it to your repository with a single command.
  • Add an existing remote branch to a worktree to begin work quickly.
  • Switch context between feature branches by spinning up dedicated worktrees and preparing for PRs.

Quick Start

gwq add <branch-name> # create or add a worktree for the specified branch gwq get <branch-name> # retrieve the path to the worktree gwq list # show all managed worktrees

Frequently Asked Questions about worktree-create

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

FAQPage Schema
How do I create a new Git worktree for feature development?

To create a Git worktree, use the command `gwq add <branch-name>` to automatically create and attach a dedicated working directory to your repository for the specified branch.

What is the best way to manage multiple Git worktrees across repositories?

Managing multiple Git worktrees is handled by gwq, which supports commands like `gwq list` to show all managed worktrees and `gwq get` to retrieve specific worktree paths across your repositories.

Do I need gwq installed to use this worktree workflow?

Yes, you need gwq installed in your Git environment, as this workflow relies on its specific commands like `gwq add` and `gwq get` to automate worktree creation and path management.

Can I add an existing remote branch to a worktree for PR preparation?

Yes, you can add an existing remote branch to a worktree using `gwq add <branch-name>`, which quickly sets up the dedicated directory needed to begin work and prepare for PRs.

How does automating worktree creation reduce context switching in DevOps?

Automating worktree creation with gwq reduces context switching by eliminating manual path management, allowing you to spin up dedicated worktrees for different feature branches with a single command.