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中Please enter a commit message to explain why this merge is necessary

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

两种解决方式';

第一:

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

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

第二:

1.按键盘左上角"Esc"

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