Outer repository, you need to pull with subsequent rebase or merge, If you want to fetchĪll new commits instead, enable the option Always fetch new commits, Repository as the current state of the submodule. The aforementioned Update option will only fetchĬommits as needed, i.e. Submodules when pulling, but also uninitialized submodules, after having New submodules with this, SmartGit will update not only registered Additionally, you may also enable And initialize SmartGit automatically updates all registered submodules when pulling on Pull section, enable Update registered submodules, so that Open the repository settings via Repository|Settings, and in the Indicates that the submodule has changed and that you need toĬhange in the outer repository. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |