【发布时间】:2011-02-17 08:08:02
【问题描述】:
我想要的类似于this question。但是,我希望拆分为单独存储库的目录保留该存储库中的子目录:
我有这个:
foo/
.git/
bar/
baz/
qux/
我想把它分成两个完全独立的存储库:
foo/
.git/
bar/
baz/
quux/
.git/
qux/ # Note: still a subdirectory
如何在 git 中做到这一点?
如果有某种方法可以将所有新 repo 的内容移动到整个历史记录的子目录中,我可以使用 this answer 中的方法。
【问题讨论】:
标签: git split git-filter-branch