User Tools

Site Tools


git:git-submodules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git:git-submodules [2023/05/02 16:45] admingit:git-submodules [2023/05/07 19:26] (current) admin
Line 30: Line 30:
 </code> </code>
  
-In another computer we can simply clone the main project repo and we will see that there is nothing in the submodule. The contant can be pulled by +In another computer we can simply clone the main project repo and we will see that there is nothing in the submodule. The content of the submodules can be pulled by 
 <code bash> <code bash>
 git clone <git URL>  git clone <git URL> 
 +cd <git repo main folder>
 git submodule update --init git submodule update --init
 </code> </code>
-If we know when clone the main project git that there are submodules we can pull them at the start with **--recursive** keyword:+If we know when cloning the main project git that there are submodules we can pull them at the start with **--recursive** keyword:
 <code bash> <code bash>
 git clone <git URL> --recursive git clone <git URL> --recursive
 </code> </code>
git/git-submodules.1683038720.txt.gz · Last modified: 2023/05/02 16:45 by admin