【问题标题】:Apply merge rules from .gitattributes file to git rebase calls将 .gitattributes 文件中的合并规则应用于 git rebase 调用
【发布时间】:2012-06-01 02:49:10
【问题描述】:

我之前已经阅读并应用了来自this excellent answer 的关于在 git 中为特定文件类型设置合并策略的说明。这非常适合合并。但是,当我执行git rebase 时,并没有应用合并策略。

是否可以设置git rebase 以便它应用类似的合并策略来自动解决某些冲突?

【问题讨论】:

  • 我很想知道这个问题的答案!

标签: git rebase git-merge gitattributes


【解决方案1】:

您可以强制 rebase 对重命名的文件应用相同的规则(也会导致问题),就像使用合并一样

 git rebase --merge

它也可能适用于您的问题。当您想在变基时应用 eol 转换时,它不起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    • 2014-02-01
    • 1970-01-01
    • 2016-02-06
    相关资源
    最近更新 更多