meta data for this page
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
git:sub [2016/09/07 07:31] – created niziak | git:sub [2016/09/07 11:32] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | https:// | ||
+ | |||
====== submodules ====== | ====== submodules ====== | ||
+ | Submodule is only a link to commit ref in another repo. | ||
+ | === Add === | ||
+ | Adding submodule: | ||
<code bash> | <code bash> | ||
- | git submodule | + | git submodule |
- | git fetch --recurse-submodules | + | |
</ | </ | ||
- | Adding submodule: | + | === Init === |
+ | After cloning master repo with submodules: | ||
<code bash> | <code bash> | ||
- | git submodule | + | git submodule |
+ | git submodule update | ||
</ | </ | ||
+ | |||
+ | alternatively repo can be clonned with | ||
+ | <code bash> | ||
+ | git clone --recursive <url> | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | git submodule update --init --recursive | ||
+ | git fetch --recurse-submodules | ||
+ | </ | ||
+ | |||
+ | |||
Removing submodule: | Removing submodule: |