When adding a new Git submodule into your project, multiple actions will be performed for you : Remote: Total 5257 (delta 0), reused 0 (delta 0), pack-reused 5257 To add “project” as a submodule, you would run the following command at the root of your repository $ git submodule add vendorsĬloning into '/home/user/main/project'. $ git commit -m "Added the submodule to the project."Īs an example, let’s pretend that you want to add the “project” repository as a submodule on your project into a folder named “vendors”. As a consequence, you will need to commit your submodule by using the “git commit” command. When adding a Git submodule, your submodule will be staged. Optionally, you can also specify the target directory (it will be included in a directory named as the remote repository name if not provided) $ git submodule add ![]() ![]() In order to add a Git submodule, use the “git submodule add” command and specify the URL of the Git remote repository to be included as a submodule. The first thing you want to do is to add a Git submodule to your main project. Configuring submodules for your repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |