合并不同分支时出错

时间:2016-02-25 19:13:23

标签: git git-merge

我只是运行命令:

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)

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

1 个答案:

答案 0 :(得分:0)

您需要使用-m标志,该标志用于显示提交的消息,并且每次提交都需要有消息。

例如:

git commit -m "first commit"