After the pull, the submodule will have a differentĪppearance in the Repositories view if new commits have been fetchedĪnd a rebase or merge has been performed. Select the submodule in the Repositories view and invoke See Working within Submodules for more information on the Note that in eitherĬase, pulling will fetch new commits without changing the submodule if Will be described in the following subsections. Submodules when you do a pull on the outer repository. Remote repository, by configuring SmartGit to automatically update all On the submodule itself, or, if the outer repository is connected to a You can perform an update either by doing a pull In the submodule repository are modified externally, and you perform an Updating SubmodulesĪfter a submodule has been set up, the usual workflow is that some files Submodule, via Remote|Submodule|Synchronize, so that the new URL If the URL of a submodule’s remote repository has changed, you need to After the submodule is unregistered, you may delete To remove a submodule from the repository, select the submodule in theįiles view, invoke Remote|Submodule|Unregister, and thenĬommit your changes. Remote|Submodule|Add on the repository in the Repositories To add a new submodule to a repository, invoke You will probably want to Deactivate it, too. To remove a submodule from the working tree, select the submodule in theįiles view, invoke Remote|Submodule|Deinit. Technically, submodule.active=false willīe set in the parent repository. Submodule vanish from the Files view unless View|Show Ignoredįiles is selected. To “ignore” a not-yet initialized submodule which you are not interested Operations on the submodule repository itself will be performed in the Perspective) will be performed in the Files view. Submodule operations (from the parent repository Submodules are showing up in the Repositories as well as theįiles view. Adding, Removing and Synchronizing Submodules Note Performing the initialization will leave the submodule directory empty.įor a fully functional submodule, you’ll also need to do a pull on it,Īs described in Updating Submodules. Submodules later by hand via Remote|Submodule|Initialize. Without this option, you may initialize the Is selected, so that all first-level submodules are automatically Via Repository|Clone, make sure the option Include Submodules If you clone an existing repository containing one or more submodules Selected submodule itself (if it is not yet initialized). Here to see how the submodule-pointer has changed over time or youĬan invoke Remote|Submodule|Initialize to initialize the Perspective of the parent repository: e.g. The Files view offers operations on the submodule pointer from.Remote|Submodule|Initialize to initialize all sub-submodules History of the submodule repository or you can invoke The Repositories view offers operations in the submodule.Main menu depend on whether the Repositories view or the Files Submodules in the UIĪ submodule usually shows up in SmartGit’s UI at the same time in the May later adjust it, for example to fix SSH login names. Which the required entries are added to the. Setting submodule repositories involves an initialization process, in Is usually versioned, so it can be maintained by all users and/or gitmodules file of the parent repository. The link between working tree entry and foreign repository is stored in Separate entry in the parent repository’s git object database. The definition of the submodule is stored as a The submodule is always pointing at a particular commit of Subdirectory of the working tree (which belongs to the parent This is similar to SVN’s externals feature.Ī submodule is a nested repository that is embedded in a dedicated Submodules, which allows you to embed one Git repository into another. Often, software projects are not completely self-contained, but shareĬommon parts with other software projects. For SVN repositories, refer to Externals (Normal Mode Only). This section only applies to submodules of native Git repositories,īut not of SVN clones.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |