aboutsummaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rw-r--r--git/submodules.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/git/submodules.md b/git/submodules.md
new file mode 100644
index 0000000..905367b
--- /dev/null
+++ b/git/submodules.md
@@ -0,0 +1,11 @@
+# Submodules
+
+## Update
+
+```sh
+git submodule update --recursive --remote
+```
+
+> Update the registered submodules to match what the superproject
+> expects by cloning missing submodules, fetching missing commits in
+> submodules and updating the working tree of the submodules.