Git:修复了合并冲突,但现在没有提交的文件?

时间:2017-02-27 05:56:33

标签: git merge

我正在尝试合并并将提交推送到远程仓库。

我在2个文件上遇到合并错误,因此修复了它们。

我然后git status并看到:

Unmerged paths:
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#       both modified:  css/main.css
#       both modified:  sass/_style-guide.scss

是的,那些是我修复的文件,所以我运行:git add .然后git commit,但会立即收到消息:

You have no files to commit

有谁知道为什么这样做?

0 个答案:

没有答案