Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

Git merge error : 

Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

It’s not a Git error message, it’s the editor git uses your default editor.

To solve this:

  1. press “i”
  2. write your merge message
  3. press “esc”
  4. write “:wq”
  5. then press enter

If it helps anyone, the way you remember this is that “i” is for “insert”, “esc” is the exit the insertion, and “:wq” is just “write” and “quit”.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.