【发布时间】:2011-10-24 01:51:24
【问题描述】:
我有一个大型主项目,其中有几个目录作为子树。
我想将一个特定子树中的更改推送到它的原点,这是一个单独的存储库。
问题似乎是,我要推送的当前 子树 最初并不是来自我要推送到的存储库。它来自不同的存储库,通过我通过谷歌搜索找到的 子树指南。它只是看起来非常相似。
大型项目布局,其中important_subtree是我担心的事情。
~/devel/bigproject
.git/
some_subtree/
other_subtree/
important_subtree/
abc.txt
efg.txt <--- new version
hij.txt
important_subtree 与该回购“密切相关”:
~/devel/important
.git/
abc.txt
efg.txt <--- old version
hij.txt
现在~/devel/bigproject/important_subtree/efg.txt 已更改,我想将重要的子树 推送到 repo ~/devel/important。所以之后~/devel/important/efg.txt也有变化。
我唯一能做的就是将bigproject中的everything推入important,这显然不是我想要的。只应推送子树中的更改。
【问题讨论】:
标签: git git-push git-subtree