この記事はgpt-4.1によって生成されました。

手順

  1. リポジトリをクローン

    git clone <レポジトリURL>
    cd <レポジトリディレクトリ>
  2. 必要なサブモジュールだけ初期化・更新

    git submodule update --init <サブモジュールのパス>

    例:external/foo サブモジュールだけ取得したい場合

    git submodule update --init external/foo
  3. 複数のサブモジュールも同時に指定可能

    git submodule update --init path/to/foo path/to/bar