In order to add a Git submodule, use the git submodule add. The name of the branch is recorded as submodule..branch in. Add a Git Submodule The first thing you want to do is to add a Git submodule to your main project.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. Branch of repository to add as submodule. 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. After a git pull or git merge command, add the following tag: git pull origin master. (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.) The error is resolved by toggling the allow-unrelated-histories switch. 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. Release branches for MediaWiki have submodules for all the extensions but the measter branch does not. That is the cause of the You are not currently on a branch message. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |