gpt4 book ai didi

git - git 中 "Resolve using theirs"的默认行为是什么

转载 作者:太空狗 更新时间:2023-10-29 13:37:16 25 4
gpt4 key购买 nike

根据 this question ,我知道可以保留所有未引发任何冲突的更改,同时使用 他们的更改来处理冲突的更改。

我想知道的是,当使用 SourceTree(或者,如果相关的话,任何 git 工具甚至命令行)时,选择 Resolve using theirs 时的默认行为是什么文件(甚至完全 merge )。

  • 它是否只是将完整的本地文件替换为远程中的任何内容?
  • 它是否保留所有本地非冲突更改并且只使用他们的来处理所有冲突?

最佳答案

它解决了非冲突的更改,并且更喜欢 他们的 来解决冲突的更改。 (与我们的相反)

来自

ours
>>> This option forces conflicting hunks to be auto-resolved cleanly by
>>> favoring our version. Changes from the other tree that do not
>>> conflict with our side are reflected to the merge result.

This should not be confused with the ours merge strategy, which does
not even look at what the other tree contains at all. It discards
everything the other tree did, declaring our history contains all that
happened in it.

theirs
This is opposite of ours.

关于git - git 中 "Resolve using theirs"的默认行为是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41382506/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com