← スキル一覧に戻る

git-worktree
by jwonyLee
⭐ 0🍴 0📅 2026年1月24日
SKILL.md
name: git-worktree description: Manage git worktrees - create or switch to worktree by branch name. Use when user mentions worktree, gw, gwa, gwc, or wants to switch/create branch workspace.
Git Worktree Manager
Create or switch to git worktree by branch name.
Usage
User provides branch name only. The skill:
- Checks if worktree for that branch exists
- If exists: navigate to it
- If not: create from
developbranch, then navigate
Commands
Check existing worktrees
git worktree list
Check if specific branch worktree exists
git worktree list | grep "{branch-name}"
Create worktree (from develop)
Uses zshrc function gwa:
gwa {branch-name} develop
- Converts
/to-in folder name automatically - Creates at
../{folder-name}relative to current repo
Switch to worktree
Uses zshrc function gwc:
gwc {branch-name}
- Uses fzf for selection
- Pass branch name as query filter
Direct navigation
cd ../{folder-name}
Where {folder-name} = branch name with / replaced by -
Workflow
# 1. Check if worktree exists
git worktree list | grep "{branch}"
# 2a. If exists - navigate
cd ../{folder-name}
# 2b. If not exists - create then navigate
gwa {branch-name} develop && cd ../{folder-name}
Examples
| Input | Folder | Action |
|---|---|---|
fc/feature1 | fc-feature1 | create/switch |
rieul/fix-bug | rieul-fix-bug | create/switch |
develop | develop | switch only |
Notes
- Always branch from
develop - Worktree path:
{repo-root}/../{folder-name} - Requires zshrc functions:
gwa,gwc
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です