(1)Please enter a commit message to explain why this merge is necessary
请输入提交消息来解释为什么这种合并是必要的
解决方法:
git 在pull或者合并分支的时候有时会遇到这个界面。可以不管(直接下面3,4步),如果要输入解释的话就需要:
1.按键盘字母 i 进入insert模式
2.修改最上面那行黄色合并信息,可以不修改
3.按键盘左上角”Esc”
4.输入”:wq”,注意是冒号+wq,按回车键即可
(2)error: The following untracked working tree files would be overwritten by merge:
KWZConstruction/Section/ProjectView/Models/.DS_Store
Please move or remove them before you merge.
遇到这个错误的,可以删除掉这个文件,然后在进行操作,但是遇到这种.de_store文件几乎有文件夹的地方,都会生成一个,这个时候我们就要用命令先清除,然后再进行之前的操作,命令如下:
git clean -d -fx ""