diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
commit | 0d389e1d6c1aed4a92f82d9711f4564a12390fcd (patch) | |
tree | ca4925547669a045d836c2aeb6d4b2309c3f5996 /Submodules.md | |
parent | 32422d2b9001291d7136036581122cf4b4eec75c (diff) |
vault backup: 2025-06-16 10:44:49
Diffstat (limited to 'Submodules.md')
-rw-r--r-- | Submodules.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Submodules.md b/Submodules.md new file mode 100644 index 0000000..fe761e2 --- /dev/null +++ b/Submodules.md @@ -0,0 +1,4 @@ +To add another repo as a submodule: `git submodule add` + +To point the submodule to a specific branch: `git submodule set-branch -b <branch> submodule-path`. +It's important to pass `--remote` to `git submodule update` to make sure it tracks the branch specified.e
\ No newline at end of file |