解决git提交:Please enter a commit message to explain why this merge is necessary

Posted belongs-to-qinghua

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决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,

# especially if it merges an updated upstream into a topic branch.

#

# Lines starting with ‘#‘ will be ignored, and an empty message aborts

# the commit.

  

  话不多说,直接描述方法:

  1. 键盘输入‘i’
  2. 键盘输入‘esc’
  3. 键盘输入‘:wq’
  4. 键盘输入‘enter’,提交代码成功

以上是关于解决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中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中Please enter a commit message to explain why this merge is necessary.

git commit 时出现:please enter the commit message for your changes

github 提交使用git commit,报错Please tell me who you are