git submodule add命令本身并不直接支持在添加子模块时指定特定的tag。但你可以通过以下步骤来实现添加子模块并指定特定的tag: 添加子模块: 首先,使用git submodule add命令将子模块添加到你的项目中。此时,你可以选择任意分支(例如master)或直接指定一个包含所需tag的分支。这一步是为了在项目中记录子模块的存在。
Shown when a user runs a submodule command that fails because git submodule update --init was not run. suggestDetachingHead Shown when git-switch[1] refuses to detach HEAD without the explicit --detach option. updateSparsePath Shown when either git-add[1] or git-rm[1] is asked to upd...
cd/path/to/yoursubmodule git checkout yourTag cd..git add yoursubmodule git commit-m"use submoduile at tag xx"git push http://stackoverflow.com/questions/18755933/create-a-git-submodule-from-a-specific-repo-hash-or-tag 删除submodule 从.gitmodule 文件里面删掉关于 vendor/plugins/will_paginate...
cd/path/to/yoursubmodule git checkout yourTag cd..git add yoursubmodule git commit-m"use submoduile at tag xx"git push http://stackoverflow.com/questions/18755933/create-a-git-submodule-from-a-specific-repo-hash-or-tag 删除submodule 从.gitmodule 文件里面删掉关于 vendor/plugins/will_paginate...
git-submodule.sh git-submodule.sh: rename some variables Dec 11, 2024 git-svn.perl Makefile: consistently use @Placeholder@ to substitute Dec 7, 2024 git-web--browse.sh git-web--browse.sh: use the $( ... ) construct for command substitution Apr 24, 2014 ...
behavior in which it accepts a list of explicit module names. This enables a workflow of activating only specific submodules that are needed for work on the repository. This can be helpful if there are many submodules in a repo but they don't all need to be fetched for work you are ...
Similar to -S, just the argument is different in that it doesn’t search for a specific string but for a specific object id. The object can be a blob or a submodule commit. It implies the -t option in git-log to also find trees. --pickaxe-all When -S or -G finds a change,...
$ git submodule add-b master https://github.com/path-to/react-dom.git src/packages/react-dom 会在主repo创建一个src/packages/react-dom空目录,作为子模块的坑位。实际上,add过程主要发生了3件事: clone一份子模块repo到主repo的git缓存目录里,例如.git/modules/src/packages/react-dom ...
git-submodule[1] Initialize, update or inspect submodules git-switch[1] Switch branches git-tag[1] Create, list, delete or verify a tag object signed with GPG git-worktree[1] Manage multiple working trees gitk[1] The Git repository browser ...
A Git repository can be configured to ignore specific files or directories. This will prevent Git from saving changes to any ignored content. Git has multiple methods of configuration that manage the ignore list. Git ignore configure is discussed in further detail on thegit ignorepage. ...