首页 > 代码库 > git中Please enter a commit message to explain why this merge is necessary

git中Please enter a commit message to explain why this merge is necessary

今天在使用git时,git pull和git merge时,经常出现如下错误信息:

Please enter a commit message to explain why this merge is necessary.(请输入提交消息来解释为什么这种合并是必要的)

技术分享

 

解决方法:

1.按“Esc”退出键

2.输入“:wq”,然后按下“Enter”键(说明:要输入英文状态下的冒号)

 

参考文档 :http://blog.csdn.net/ailo555/article/details/52202276

git中Please enter a commit message to explain why this merge is necessary