Col*_*inE 14 git git-submodules twitter-bootstrap
我有一个依赖于Twitter bootstrap 2.x的项目,但是,当我使用以下内容添加bootstrap作为子模块时:
git submodule add https://github.com/twbs/bootstrap.git
Run Code Online (Sandbox Code Playgroud)
这带来了最新版本的bootstrap.
我想为特定标签创建一个子模块,但还没有找到一种方法.这可能吗?
Von*_*onC 25
创建子模块后:
cd /path/to/yoursubmodule
git checkout yourTag
cd ..
git add yoursubmodule
git commit -m "use submoduile at tag xx"
git push
Run Code Online (Sandbox Code Playgroud)
您可以通过这种方式记录您希望某个标签上的子模块的事实.