12/6/2023 0 Comments Git submodule add example![]() This may be eitherĪn absolute URL, or (if it begins with. is the URL of the new submodule’s origin repository. Submodule’s logical name in its configuration entries unless -name is used to specify "/path/to/repo.git" and "foo" for "host.xz:foo/.git"). Not given, the "humanish" part of the source repository is used ("repo" for Relative location for the cloned submodule to exist in the superproject. Directories that come fromīoth projects can be cloned and checked out as a whole if you choose to go that route.Īdd the given repository as a submodule at the given path to the changeset to beĬommitted next to the current project: the current project is termed the Strategy, instead of treating the other project as a submodule. To merge the project histories and want to treat the aggregated whole as a single projectįrom then on, you may want to add a remote for the other project and use the subtree merge You cannot modify the contents of the submodule from within the main project. Source tree, while the history of the two projects still stays completely independent and Project submodules are meant for different projects you would like to make part of your Submodules are not to be confused with remotes, which are other repositories of the same Local repository configuration (see submodule init). The logical name can be used for overriding this URL within your Tree assigns a logical name to the submodule and describes the default URL the submodule gitmodules (see gitmodules(5)) file at the root of the source Refers to a particular commit object within the inner repository that is completely Submodules are composed from a so-called gitlink tree entry in the main repository that Out and at appropriate revision in your working tree. When cloning or pulling a repository containing submodules however, these will not beĬhecked out by default the init and update subcommands will maintain submodules checked This can be used to have external dependencies such as The other repository has its own history, which does not interfere with the Inspects, updates and manages submodules.Ī submodule allows you to keep another Git repository in a subdirectory of your Git-submodule - Initialize, update or inspect submodules
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |