📣
TiDB Cloud Premium はパブリックプレビュー中です。エンタープライズワークロード向けの無制限のスケーリング、即時の弾力性、高度なセキュリティを提供します。このページは自動翻訳されたものです。原文はこちらからご覧ください。

ti fs-git clone-git-workspace



リポジトリをマウントされた file system パスにクローンします。Hydration は同期的に実行することも、バックグラウンドで実行することもできます。

構文

ti fs-git clone-git-workspace --repo-url <string> --target-path <string> [--blobless] [--dry-run] [--file-system-id <string>] [--fs-token <string>] [--help] [--hydrate <string>] [--version]

オプション

  • --repo-url <string>: Git リポジトリの URL。[required]
  • --target-path <string>: クローン先のマウントされたファイルシステムパス。[required]
  • --blobless: blobless の部分的なローカル .git を作成し、クリーンな blob を別途 hydrate します。
  • --dry-run: 変更を適用せずにリクエストを検証します。
  • --file-system-id <string>: ファイルシステムを選択します。TI_FS_FILE_SYSTEM_ID を設定することもできます。
  • --fs-token <string>: file system トークンを設定します。省略した場合、このコマンドは TI_FS_TOKEN 環境変数を使用します。どちらも指定されていない場合、このコマンドは選択した file system 用にローカルに保存されているトークンを使用します。
  • --help: ヘルプ情報を表示します。
  • --hydrate <string>: クリーンデータの hydration モード: auto、background、sync、または off。auto では、blobless クローンはバックグラウンドで hydrate され、blobless でないクローンでは別個の hydration ステップは実行されません。background と sync には --blobless が必要です。off は hydration をスキップします。[default: auto]
  • --version: バージョン情報を表示します。

すべてのコマンドで共通のオプションについては、グローバルオプション を参照してください。

例

  • 通常どおりにリポジトリをクローンする場合:

    # Create a complete Git checkout in the mounted file system path. ti fs-git clone-git-workspace --file-system-id <file-system-id> --repo-url https://github.com/pingcap/tidb.git --target-path /path/to/workspace/tidb
  • blobless ワークスペースをすぐに開始する場合:

    # Expose the repository tree while clean Git objects hydrate in the background. ti fs-git clone-git-workspace --file-system-id <file-system-id> --repo-url https://github.com/pingcap/tidb.git --target-path /path/to/workspace/tidb --blobless --hydrate background
  • blobless hydration の完了を待機する場合:

    # Keep the clone command running until clean Git objects finish hydrating. ti fs-git clone-git-workspace --file-system-id <file-system-id> --repo-url https://github.com/pingcap/tidb.git --target-path /path/to/workspace/tidb --blobless --hydrate sync

このページは役に立ちましたか?