Skip to content

Commit ced8f94

Browse files
committed
Record how to specify folder to use
1 parent 8d9f0b6 commit ced8f94

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

content/git/submodules.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title="Submodules"
33
date = 2023-04-14
4-
updated = 2025-04-26
4+
updated = 2026-01-20
55
extra = { series = "Git" }
66
taxonomies = { tags = ["Git"] }
77
+++
@@ -10,10 +10,18 @@ taxonomies = { tags = ["Git"] }
1010

1111
For path prefer relative paths (See example below)
1212

13+
## For placing in current folder use
14+
1315
```sh
1416
git submodule add ../ts_lib.git
1517
```
1618

19+
## For placing in a subfolder (or with a specific name) use
20+
21+
```sh
22+
git submodule add ../ts_lib.git path_to_place_module
23+
```
24+
1725
# Using already setup submodules
1826

1927
Source: <https://stackoverflow.com/questions/1030169/pull-latest-changes-for-all-git-submodules>

0 commit comments

Comments
 (0)