ti fs-git add-git-worktree
ベースワークスペースから、リンクされた Git worktree を追加します。
構文
ti fs-git add-git-worktree
--base-path <string>
--worktree-path <string>
[--blobless]
[--branch-name <string>]
[--commit-ish <string>]
[--detach]
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--hydrate <string>]
[--version]
オプション
--base-path <string>: ベース Git ワークスペースのマウントされたファイルシステムパスです。[required]--worktree-path <string>: リンクされた worktree 用のマウントされたファイルシステムパスです。[required]--blobless: ベースワークスペースが blobless Git ストレージを使用していることを検証します。このオプションは、blobless でないワークスペースを変換しません。--branch-name <string>: リンクされた worktree 用のブランチを作成します。--commit-ish <string>: リンクされた worktree 用の任意の commit-ish です。--detach: detached なリンク済み worktree を作成します。--dry-run: 変更を適用せずにリクエストを検証します。--file-system-id <string>: ファイルシステムを選択します。TI_FS_FILE_SYSTEM_IDを設定することもできます。--fs-token <string>: ファイルシステムトークンを設定します。省略した場合、このコマンドはTI_FS_TOKEN環境変数を使用します。どちらも指定されていない場合、このコマンドは選択したファイルシステム用にローカルに保存されたトークンを使用します。--help: ヘルプ情報を表示します。--hydrate <string>: クリーンデータの hydration モード:auto、background、sync、またはoff。autoでは、blobless ベースにリンクされた worktree はバックグラウンドで hydration され、blobless でないベースにリンクされた worktree では個別の hydration ステップは実行されません。backgroundとsyncには blobless ベースが必要です。offは hydration をスキップします。[default: auto]--version: バージョン情報を表示します。
すべてのコマンドで共有されるオプションについては、グローバルオプション を参照してください。
例
新しいブランチに worktree を作成します。
# Give an agent an isolated branch while sharing the base Git object store. ti fs-git add-git-worktree --file-system-id <file-system-id> --base-path /path/to/workspace/tidb --worktree-path /path/to/workspace/tidb-feature --branch-name feature-xdetached worktree を作成します。
# Inspect a commit without creating or switching a branch. ti fs-git add-git-worktree --file-system-id <file-system-id> --base-path /path/to/workspace/tidb --worktree-path /path/to/workspace/tidb-review --commit-ish origin/main --detach