72e07ea441d8ef81424c4123f28a1f31c6a8bfb6
.redirects.gollum
... | ... | @@ -62,3 +62,4 @@ ubuntu/接続されているディスクの一覧を表示する.md: ubuntu/Ubun |
62 | 62 | ubuntu/搭載されているRAMのサイズを調べる.md: ubuntu/Ubuntuで搭載されているRAMのサイズを調べる.md |
63 | 63 | ubuntu/新たにディスクを追加する.md: ubuntu/Ubuntuで新たにディスクを追加する.md |
64 | 64 | ubuntu/間違えてuserからsudoを取り除いてしまったとき.md: ubuntu/Ubuntuで間違えてユーザーからsudo権限を取り除いてしまったとき.md |
65 | +git/git submoduleを含むgitレポジトリで、特定のsubmoduleだけをクローンする.md: git/submodule/git submoduleを含むgitレポジトリで、特定のsubmoduleだけをクローンする.md |
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
... | ... | @@ -1,28 +0,0 @@ |
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 | - ``` |
git/submodule/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 | + ``` |