スキル一覧に戻る
bryonjacob

working-in-git-worktrees

by bryonjacob

Aug plugin marketplace

0🍴 1📅 2026年1月13日
GitHubで見るManusで実行

SKILL.md


name: working-in-git-worktrees description: Working in isolated worktree directories for parallel work - work normally, tests isolated, orchestrator handles cleanup

Working in Git Worktrees

Purpose

Git worktrees create isolated working directories on separate branches. Enables parallel work without conflicts.

Why you're in a worktree:

  • Parallel work with other agents
  • Test/lint isolation
  • Independent branch work

Check if in Worktree

git rev-parse --git-dir
# .git → main repo
# ../path/.git/worktrees/name → worktree

git branch  # Shows your feature branch

Working Normally

Everything works normally!

  • Commit, push, pull as usual
  • Run tests in isolation
  • Create PRs
  • All git operations work

What's different:

  • Separate working directory
  • Changes don't affect parallel work
  • Tests/lint see only your changes

Workflow

# Delegated to worktree
cd ../worktree-42

# Verify
git branch  # feature-branch-42
git status  # Clean

# Work normally
# Edit files
git add .
git commit -m "feat: implement"
just check-all
git push -u origin HEAD

# Create PR
gh pr create --draft

Comparison

AspectMain RepoWorktree
LocationOriginal pathSeparate directory
TestsMay conflictFully isolated
FilesSharedIndependent
Git historySharedShared

After Complete

Don't manually delete!

Orchestrator handles cleanup after merge. Just return to main:

cd ../main-repo
git checkout main
git pull

Commands

# Create (usually orchestrator does this)
git worktree add ../worktree-42 -b feature-42

# List
git worktree list

# Remove (orchestrator does this)
git worktree remove ../worktree-42

Troubleshooting

"Branch already checked out" - Switch branch in other worktree first Changes not showing - Check pwd and git branch Tests failing - Verify with git pull

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

レビュー

💬

レビュー機能は近日公開予定です