合并不同分支时出错

Error while merging different branches

我只是 运行 命令:

git merge branch2

然后git发现有冲突,好心的让我解决,我就解决了。 解决冲突问题后我尝试了 运行:

git commit

我得到了这个:

$ git commit
error: cannot spawn emacs: No such file or directory
error: unable to start editor 'emacs'
Please supply the message using either -m or -F option.  

我的终端现在是这样的:
User@User-PC MINGW64 /x/myPath (branch|MERGING)

所以合并还没有完成,对吧?我该如何解决?

您需要使用 -m 标志,用于显示提交消息,并且每个提交都需要有一条消息。

例如:

git commit -m "first commit"