Back to list
LixvYang

gitworktree-skill

by LixvYang

0🍴 0📅 Jan 5, 2026

SKILL.md


name: gitworktree-skill description: Manage Git worktrees with ga/gd helpers to create, switch, and clean isolated branches quickly. metadata: short-description: Fast git worktree workflow

Git Worktree Quick Workflow

When to Use

Use this skill when you need isolated development for a feature, fix, or experiment and want to avoid frequent branch switching.

Commands

If ga/gd are not available, install the helper functions from scripts/worktree_helpers.sh and then use the commands below.

# Create worktree + branch and cd into it
ga <branch-name>

# Delete current worktree (requires gum for confirmation)
gd

# List all worktrees
git worktree list
  1. Pick a branch name:
    • feature/<short-desc>
    • fix/<short-desc>
    • experiment/<short-desc>
  2. Create the worktree:
    • ga feature/<short-desc>
  3. Do the work in the new directory.
  4. Clean up after merge or abandon:
    • gd

Guardrails

  • Only run gd inside a worktree directory to avoid deleting the main repo.
  • If gd fails, install gum: brew install gum.
  • If a branch already exists, choose a new name or delete the old branch first.

Install helpers (if needed)

# From this repo root
source scripts/worktree_helpers.sh

Add the source line to your shell profile (e.g. ~/.zshrc) to make ga/gd available.

Example:

echo 'source /path/to/gitworktree-skill/scripts/worktree_helpers.sh' >> ~/.zshrc

Dependencies

  • gum is required for gd confirmation prompts.
  • mise is optional and auto-trusts new worktree directories.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon