![]() ![]() To populate phone-app/graphics-lib/renderer, first change directories to phone-app/graphics-lib and follow the instructions below.įirst, we need to initialize the submodule(s). If that repository also has submodules, then your submodule’s submodules will have to be populated by following the steps below from within your project’s submodule directory (confusing yet?).įor instance, if you are working in project called phone-app, add a submodule called graphics-lib, and graphics-lib has a submodule called renderer, when you add graphics-lib to phone-app, the phone-app/graphics-lib directory will be populated as a cloned repo but the phone-app/graphics-lib/renderer directory will be empty. Now the submodule’s repository will be cloned with master checked out. Note: This has changed in newer versions of Git. In order to fill in the submodule’s path with the files from the external repository, you must first initialize the submodules and then update them. Having submodules in a repository is great and all, but if I look in my repository, all I have is an empty folder rather than the actual contents of the submodule’s repository. Url = able to modify this file later will come in handy later.Īll that is left to do now is to commit the changes and then push the commit to a remote system if necessary. Out of curiosity, let’s check out the contents of that new file: $ cat. This new file contains the details we supplied about the new submodule. Notice how the supplied path was created and added to the changes to be committed. Let’s check to see how the repository is doing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |