对于我的论文,我有一个包含许多子目录的Git存储库repo_0
。例如:在许多存储库中复制的Git子目录
thesis/
.git/
data/
experiments/
papers/
algorithm_1/
algorithm_2/
我是唯一有权访问存储库的人。但是,我想与更多人分享algorithm_1
和algorithm2
,以便他们最终可以贡献。
如何链接algorithm_1/
和algorithm_2/
自己的仓库repo_1
和repo_2
同时保持它们也repo_0
?
一个天真的解决办法是找到这些算法出repo0
和维护三个不同版本库,但是我正在寻找一个懒惰的解决方案,其中:
- 如果我在
repo_0
承诺,在algorithm_n
更改传播到repo_n
和repo_2
- 如果我在
repo_1
提交,更改传播到repo_0
什么会做sugg作为最接近的解决方案?