git submodule add -branch v1.3.37 :foo.git vendor/foo. To keep this simple Id like to avoid going into subdirectories and running git commands there. If you just want to update the already checked-out branches for any submodules, then the command you're looking for is git submodule foreach git pull. For a rails template Id like to add a submodule of a specific tag to new rails apps. If you add the Foo extension via git submodule add -f extensions/Foo, then you can update it later using a git submodule command. The exception to this rule for master is if you used git to create submodules for the extensions you install. A git submodule is a record within a host git repository that points to a specific commit in another external repository. (That last submodule command will not change anything if your parent repository is on the same revision as it was when you initially checked out the submodules.) 1 day ago &0183 &32 git submodule add -b developmentbranch .Which means that, yes, you can use git submodule update -init -recursive on release branches for those extensions included in the release branch, but not on master, as a general rule. If you applied modification to a submodule for a branch develop, it is necessary to avoid your modifications to be replaced by the original submodule when you. See Working with git submodules recursively for the init part. If -recursive is specified, this command will recurse into the registered submodules, and update any nested submodules within. Release branches for MediaWiki have submodules for all the extensions but the measter branch does not. As joschi mentions in the comments, git submodule now supports the -recursive option (Git1.6.5 and more). That is the cause of the You are not currently on a branch message. There is a special git submodule command included with git, and this command takes various arguments in order to add/update/delete your submodules. separate git repository in its own right. When you checkout a submodule (for example, Vector via git submodule update -init skins/Vector), the repository for the submodule is on a specific commit, not a branch. A submodule in a git repository is like a sub-directory which is really a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |