当我们使用 subree 合并策略时,git 如何找到子树?

发布于 2024-12-07 14:37:51 字数 298 浏览 7 评论 0原文

当我们使用子树合并策略时,git如何找到子树?我发现这里只提到了一个 :“它实际上猜测您想要合并的子树。通常,这神奇地被证明是正确的,但是如果您的子树包含很多更改(或者最初是空的,或者其他什么),那么它可能会失败非常壮观。” 它如何猜测?如果失败我该怎么办? 自 2009 年 8 月撰写该答案以来是否发生了变化?

How does git find subtree, when we use subtree merging strategy? I find only one mention here: "It actually guesses the subtrees that you want to merge. Usually, this magically turns out to be correct, but if your subtree contains a lot of changes (or was originally empty, or whatever), then it can fail spectacularly."
How does it guess and what can i do, if it fails?
Is something changed since aug'09, when that answer were written?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丢了幸福的猪 2024-12-14 14:37:51

以下是一些有关子树合并的有用文章:

http: //blog.brad.jones.name/2011/10/52/merging-two-git-repositories-history

http://kernel.org/pub/software/scm /git/docs/howto/using-merge-subtree.html

https://help.github.com/articles/working-with-subtree-merge

自询问日期以来,子树合并的状态已发生变化,包括添加 -- Xsubtree= 参数允许您绕过“猜测”。

Here are some helpful articles about subtree merging:

http://blog.brad.jones.name/2011/10/52/merging-two-git-repositories-history

http://kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

https://help.github.com/articles/working-with-subtree-merge

The state of subtree merges has changed since the date asked, including the addition of --Xsubtree= parameter to allow you to bypass the "guess".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文