Git submodule git submodule management related operation notes

Time:2020-2-24

Some command notes related to the operation of GIT sub module:

#When a project using git clone has a submodule, the content of the submodule will not be downloaded automatically at the initial time, and the following commands need to be executed:;
Git submodule update -- init -- recursive. When using git clone with submodule in the project, the following command will not download the third-party module recursively; git submodule update -- init

 Git add sub module:

# git submodule add  
git submodule add https://github.com/google/googletest.git third-party/gtest

Keep up-to-date. For more information, please follow cnblogs.com/xuyaowen;