Git Tricks - Commit message

## 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.

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

To solve this:

press "i"
write your merge message
press "esc"
write ":wq"
then press enter

Comments

Popular posts from this blog

Software Testing @ Microsoft

Trim / Remove spaces in Xpath?