我从origin
本地更新我的本地文件,其中一个文件有冲突的更改。我解决了冲突,但我不能(本地)提交,因为 git 仍然认为文件有冲突:
$ git add style.css
这有效 - 没有错误或任何东西。然后:
$ git commit
Merge branch 'dev' of [origin] into dev
Conflicts:
[path]/style.css
#
# It looks like you may be committing a MERGE.
# If this is not correct, please remove the file
# .git/MERGE_HEAD
# and try again.
#
为什么这不起作用?