【发布时间】:2014-08-27 22:20:32
【问题描述】:
这可能很糟糕,我不确定。
假设我们有一个带有工作目录的仓库“产品”
/product
/product/command.script
/product/config/ (bare git repo)
还有一个带有工作目录的仓库“config”
/config
/config/config.json
command.script 文件具有与裸仓库交互的操作。前任。运行 command.script BRANCH1 将运行命令
git show BRANCH1:config.json
“/product/config/”文件夹是否可以成为“product”repo 的子模块,这样当“product”repo 被克隆时,“config”repo 也将被克隆
git clone --bare [config origin here] config
从它的来源开始,当“product”repo被获取时,“/product/config”子模块可以被获取
git fetch origin '*:*'
或者这应该通过某种钩子来处理?
【问题讨论】:
-
允许裸子模块:我不这么认为。
标签: git git-submodules git-bare