When you merge branches in git, the message remains displayed and does not work.

Asked 2 years ago, Updated 2 years ago, 43 views

I wanted to merge branches with git, but the following message was displayed.
It doesn't work as it is.What should I do?

Merge branch 'master' of github.com:xxx/awesome

first
# Please enter a commit message to explain why this merge is necessary,
# especially if it merge an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and empty message aborts
# The commit.
~                                                                               
~                                                                               
~                                                                               
Type—quit<Enter>to exit Vim

git

2022-09-30 13:58

1 Answers

It's not that there are any errors, but that git is starting the editor (Vim) telling you to put in a commit message.
Please enter a commit message.Exit (discontinue commitment) without entering or leaving.

Japanese translation

#Please enter a commit message explaining why this merge is required.
# (especially if you want to merge the updated upstream into a topic branch)
#
# Lines that start with a sharp are ignored.Entering an empty message interrupts the commit.

Enter:quit to exit vim.

A temporary commit message is currently open on Vim.

  • Vim command operation:quit only interrupts this commit.
  • After entering any message, :quit commits with that message.


2022-09-30 13:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.