diff options
Diffstat (limited to 'Submodules.md')
-rw-r--r-- | Submodules.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Submodules.md b/Submodules.md new file mode 100644 index 0000000..a1e270f --- /dev/null +++ b/Submodules.md @@ -0,0 +1,8 @@ +[[Git]] + +--- + +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 |