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

1 Comment

  1. Hello. I have checked your equaltrue.com and i see
    you’ve got some duplicate content so probably it is the reason that
    you don’t rank hi in google. But you can fix this issue fast.
    There is a tool that rewrites content like human, just search in google: miftolo’s tools

Leave A Comment?