git/git submodule\343\202\222\345\220\253\343\202\200git\343\203\254\343\203\235\343\202\270\343\203\210\343\203\252\343\201\247\343\200\201\347\211\271\345\256\232\343\201\256submodule\343\201\240\343\201\221\343\202\222\343\202\257\343\203\255\343\203\274\343\203\263\343\201\231\343\202\213.md
... ...
@@ -0,0 +1,28 @@
1
+この記事はgpt-4.1によって生成されました。
2
+
3
+## 手順
4
+
5
+1. リポジトリをクローン
6
+
7
+ ```sh
8
+ git clone <レポジトリURL>
9
+ cd <レポジトリディレクトリ>
10
+ ```
11
+
12
+2. 必要なサブモジュールだけ初期化・更新
13
+
14
+ ```sh
15
+ git submodule update --init <サブモジュールのパス>
16
+ ```
17
+
18
+ 例:`external/foo` サブモジュールだけ取得したい場合
19
+
20
+ ```sh
21
+ git submodule update --init external/foo
22
+ ```
23
+
24
+3. 複数のサブモジュールも同時に指定可能
25
+
26
+ ```sh
27
+ git submodule update --init path/to/foo path/to/bar
28
+ ```