Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #524297
Use Git Submodules to Manage Libraries
The Dilemma: Using Libraries in Projects under Version Control
How do we maintain a project dependency on a library already under version control? Rather than copying the libraries source to a subdirectory in our project,
Git Submodules
Step-by-step guide to adding a Git submodule to your project
- Insert your steps.
- You can also copy and paste or drag and drop images into your instructions.
Step-by-step guide to cloning the repository with submodules
Using submodules will change how you have to initially clone the repository. Use one of the following sets of commands to clone the repository and pull in all of its submodules.
git clone <git URL>
git submodule init
git submodule update
git clone <git URL>
git submodule update --init --recursive
git clone --recursive <git URL>
Related articles
('contentbylabel' missing)
('details' missing)