← スキル一覧に戻る

git-worktrees
by yurifrl
⭐ 0🍴 0📅 2026年1月22日
SKILL.md
name: git-worktrees description: Manage git worktrees for parallel development. Use when user mentions worktrees, parallel branches, or working on multiple branches simultaneously.
Git Worktrees
Work on multiple branches simultaneously without stashing or switching.
Worktree Location
All worktrees live in .worktrees/ at repo root.
project/
├── .worktrees/
│ ├── feat-auth/
│ └── fix-login/
└── (main working tree)
Naming Convention
Worktree folder matches branch name pattern:
| Branch | Worktree Folder |
|---|---|
yurifrl/feat/auth | .worktrees/feat-auth |
yurifrl/fix/login-bug | .worktrees/fix-login-bug |
hotfix/urgent | .worktrees/hotfix-urgent |
Pattern: Take the last two segments, join with hyphen.
Commands
Create Worktree
# New branch
git worktree add .worktrees/<folder> -b <branch-name>
# Existing branch
git worktree add .worktrees/<folder> <existing-branch>
List Worktrees
git worktree list
Remove Worktree
git worktree remove .worktrees/<name>
Prune Stale
git worktree prune
Workflow
- Create worktree for feature/fix work
- Each worktree is independent (own node_modules, build cache, etc.)
- Remove worktree when branch is merged
- Run
git worktree pruneto clean up stale references
Tips
- Worktrees share the same
.git- commits are visible everywhere - Don't forget to install dependencies in new worktree
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です