Linux and linux
Git usage-download sub-module
Address: http://blog.csdn.net/caroline_wendy
It is easier to manage code hosted on Git, such as the pedometer. To use Git code, you need to download it.Manual Clone code, Decompress and load;
Create a folder and run the following command in the folder: Download the project:
Git clone git@git.chunyu.mobi: android/pedometer. git
Download the sub-module:
Git submodule update -- init -- recursive
Then configure.
Reference: http://git-scm.com/book/en/v2/Git-Tools-Submodules
Appendix: The downloaded project contains a submodule.
When a project cloned with git contains a submodule, the submodule content is not automatically downloaded at the initial time. In this case, you only need to execute the following command:
Git submodule update -- init -- recursive
You can download the sub-module content before the project does not lack the corresponding files.