2016-02-25 65 views
0

我只需运行命令:错误而合并不同的分支

git merge branch2

然后混帐发现了一个冲突,让我很好地解决这个问题,所以我做到了。 解决冲突问题后,我试图运行:

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. 

我的终端是像现在这样的权利:
[email protected] MINGW64 /x/myPath (branch|MERGING)

因此合并还没有完成,对吧?我如何解决它 ?

回答

0

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

例如:

git commit -m "first commit" 
+0

喔,我知道'-m'。但我认为只有'git commit'足以告诉git冲突得到解决。 – PlayHardGoPro

+0

确实让我知道,如果这对你有用或没有。 –