git merge 选项有什么区别--strategy-option
(short -X
)
and
--strategy
(short -s
)?
有很多关于合并策略 https://stackoverflow.com/questions/366860/when-would-you-use-the-different-git-merge-strategies。但没有人解释这些选项之间的区别。
还有git 文档 https://git-scm.com/docs/git-merge没有帮助:
--strategy-option 将合并策略特定选项传递给合并策略。
TL;DR: -s
用于指定合并策略-X
用于为所述策略提供选项。
git 文档说:
-s <strategy>
--strategy=<strategy>
使用给定的合并策略;可以多次提供以按照应尝试的顺序指定它们。如果没有 -s 选项,则使用内置策略列表(合并单个头时使用 git merge-recursive,否则使用 git merge-octopus)。
-X <option>
--strategy-option=<option>
将合并策略特定选项传递给合并策略。
此外,“合并策略”一章进一步解释了所有可用的策略及其选项。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)