git报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法

git 报错

有时候在合并分支时,偶尔会产生报错如下:
git报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法
这个时候界面被锁死,解决方法如下:
输入“:wq”,注意是英文输入状态下的冒号,然后按下“Enter”键即可。
再次打开Git时就会发现已经合并成功,提交就行了