Git Worktree
Git Worktree
Git Worktreeは、一つのリポジトリに紐づいた別のフォルダーです。複数のブランチを一度に開いておくことができます。
もう一つの例
ひとつのワークツリーが長い機能を実行します。別のワークツリーはmainから開始し、緊急の本番バグを安全に修正します。
主な部分
- 01Branch or change set
- 02Review and verification gate
- 03Released result
以下の場合に使用します
並列ブランチ、別々のエージェントタスク、リリース修正、または独自のフォルダを必要とする比較に使用します。
以下の場合は使用しないでください
ワークツリーを入れ子にしたり、Git の背後でフォルダを削除したり、独立したエージェントに重複するパスを与えたりしてはいけません。
コードで使用する名前
git worktree add/list/remove 出荷前に
Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback.
Outcome:Complete the task with Git Worktree (Git Worktree)。 User context:ひとつのワークツリーが長い機能を実行します。別のワークツリーはmainから開始し、緊急の本番バグを安全に修正します。 Delivery concept or operation:Git Worktree (Git Worktree)。 Why it fits:並列ブランチ、別々のエージェントタスク、リリース修正、または独自のフォルダを必要とする比較に使用します。 Do not use it when:ワークツリーを入れ子にしたり、Git の背後でフォルダを削除したり、独立したエージェントに重複するパスを与えたりしてはいけません。 Delivery requirements: Name the code repository and target. List preconditions, changes, review and CI checks, conflict and data-loss risks, release order, and the rollback or recovery command. Repository safeguards: Keep unpublished work and a clear history. Do not run destructive steps without an explicit backup. Check the exact code diff and remote target before publishing. Acceptance criteria: Review the intended diff and pass all required checks. Keep the target version traceable. Practice failure recovery and keep published history clear. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Repository, branch, team activity, release environment, approval owner, protected checks, and rollback target.
このリクエストを確認する
Review how Git Worktree (Git Worktree) is used now. Definition: Git Worktreeは、一つのリポジトリに紐づいた別のフォルダーです。複数のブランチを一度に開いておくことができます。 Release checks: Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.