解决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’,提交代码成功


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM