【问题标题】:How to git rebase and use ours as strategy using VSCode without using the terminal如何在不使用终端的情况下使用 VSCode git rebase 并使用我们的策略
【发布时间】:2020-11-03 11:43:36
【问题描述】:

如何在不使用终端的情况下使用 VSCode 进行 git rebase 并使用我们的策略。我尝试了所有方法,但无论是否使用扩展都找不到。

【问题讨论】:

    标签: git visual-studio-code vscode-extensions


    【解决方案1】:

    正如我所提到的,in case of conflict, accepting the changes in HEAD 将使用“我们的”策略。

    但是如果没有冲突,并且您需要默认保留ours策略,那么您需要一个merge driver in place,在.gitattributes中声明。

    完成此配置后,任何变基都将使用相当于 ours 策略,并且不需要终端。
    不过,您之后需要更改 .gitattributes ,“我们的”策略将是永久性的。

    【讨论】:

    • 但是如何为 vscode 中的所有冲突提交自动执行此操作
    • 这将是 gitattributes 文件中声明的合并驱动程序的帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-14
    • 2015-12-21
    • 2012-12-22
    • 2010-10-13
    • 1970-01-01
    • 2018-01-06
    • 2012-11-30
    相关资源
    最近更新 更多