【发布时间】:2011-10-11 11:43:37
【问题描述】:
我在合并分支时遇到了大约 12 个文件冲突。我手动修复了所有冲突并暂存了文件。但是现在当我尝试提交时,它说其中一个文件未合并。
U app/models/disclosure_event.rb
fatal: 'commit' is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>' as
appropriate to mark resolution and make a commit, or use 'git commit -a'.
当我输入git status 时,它会在Changes to be committed 下显示所有更改的文件,包括“disclosure_event.rb”。它显示没有文件未暂存。我一再尝试添加文件,但似乎什么也没做。如果我打开文件,一切看起来都很棒。
有什么想法吗?我完全被卡住了。
【问题讨论】:
-
听起来像是又一个 Git 错误.....