summaryrefslogtreecommitdiff
path: root/Submodules.md
diff options
context:
space:
mode:
Diffstat (limited to 'Submodules.md')
-rw-r--r--Submodules.md4
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