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

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


git 在pull或者合并分支的时候有时会遇到这个界面,意思是需要你 输入提交消息来解释为什么这种合并是必要的

两种解决方式';

第一:

1.按键盘字母 i 进入insert模式

2.修改最上面那行黄色合并信息

第二:

1.按键盘左上角"Esc"

2.输入冒号加wq   ":wq",  按回车键,意思就是就是忽略这个提示


版权声明:本文为wj18570504421原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。