1. 程式人生 > >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

eas csdn sof 退出 合並 comm 冒號 merge font

今天在使用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