【发布时间】:2023-03-28 03:20:01
【问题描述】:
我一直在尝试远离子模块以获得一个独立的存储库,subtree merge strategy 似乎与这个用例相匹配。
但是,合并后的 repos 的历史记录出现在我自己项目的历史记录中,这很烦人。
我已经尝试过 git filter-branch --subdirectory-filter path/to/subtree/ HEAD,它可以工作...直到我尝试使用 git pull -s subtree my-subtree master 更新子树,这会将所有子树的文件重写到我项目的根目录。
有没有办法在 git 中实现这一点?
【问题讨论】:
标签: git history git-submodules subtree