首页 > 解决方案 > 如何处理上游删除的文件中的git冲突

问题描述

我们有一个development分支和一个release分支。我们不得不在发布中修复一个特性,随后在开发过程中删除了该文件,并且该特性被有效地删除(即我们不再关心这个修复程序了)。

现在,当我们将开发合并到发布时,我们会收到以下错误:

    Removing app/views/ad_sources/subforms/_ad_source_reporting_field.html.erbRemoving app/views/a
29-Aug-2018 23:35:14    CONFLICT (modify/delete): app/views/ad_sources/subforms/_ad_source_attribute_field.html.erb deleted in development and modified in HEAD. Version HEAD of app/views/ad_sources/subforms/_ad_source_attribute_field.html.erb left in tree.

解决此问题的最佳方法是什么?也许只是在开发分支中重新创建一个空文件?

标签: git

解决方案


推荐阅读