2016-02-25 61 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

確實讓我知道,如果這對你有用或沒有。 –