解決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