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. ~ code example
Example: Please enter a commit message
To edit or add a commit message when git is using your default editor:
For Vi or Vim
1. Press "i" (for insert mode)
2. Write your message
3. Press esc (escape insert mode)
4. Press ":wq" (write & quit)
5. Press enter