在单个文件中重新启动冲突解决方案 [英] Restart conflict resolution in a single file

查看:110
本文介绍了在单个文件中重新启动冲突解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个较大的git合并有几个冲突的文件时,我错误地将一个文件标记为已解决(在编辑后使用 git add FILE

现在我想撤销我的冲突解决尝试并开始解决该文件。



我该怎么做?

解决方案

在这里找到解决方案: http:// gitster.livejournal.com/43665.html

  git checkout -m文件

$ b这会恢复未解决的状态,包括关于父级和合并基级的所有信息,从而允许重新启动分辨率。

In a larger git merge with several conflicting files, I incorrectly marked a file as resolved (using git add FILE after some editing)

Now I'd like to undo my conflict resolution attempt and start over resolving that file.

How can I do that?

解决方案

Found the solution here: http://gitster.livejournal.com/43665.html

git checkout -m FILE

This restores the unresolved state, including all information about parent and merge base, which allows restarting the resolution.

这篇关于在单个文件中重新启动冲突解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆