From 0d389e1d6c1aed4a92f82d9711f4564a12390fcd Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 16 Jun 2025 10:44:49 +0200 Subject: vault backup: 2025-06-16 10:44:49 --- Submodules.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Submodules.md (limited to 'Submodules.md') 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 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 -- cgit v1.2.3