Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using Git. I did a pull from a remote repo and got an error message:

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

I try to type a message and press Enter but nothing happens.

How do I tell Git/Terminal I am done typing in my message?

I am using Terminal on OS X.

like image 251
bernie2436 Avatar asked Sep 30 '13 02:09

bernie2436


People also ask

What is the purpose of a merge commit?

This introduction of a merge commit allows you to write a summary of the changes in the branch you're merging, and allows people reading the history in the future to choose to view the merge as just one commit, or – if they choose to – to dive into the commits that compromise the feature that was merged.

Do you need to commit after a merge?

yes ..you need to commit MERGE STATEMENT.


1 Answers

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

To solve this:

  1. press "i" (i for insert)
  2. write your merge message
  3. press "esc" (escape)
  4. write ":wq" (write & quit)
  5. then press enter
like image 148
Saad.elzwawy Avatar answered Sep 23 '22 19:09

Saad.elzwawy