发表于 2024-12-2 03:13:18

Git 合并时出现 Please enter a commit message to explain why this merge

1. 报错征象

https://i-blog.csdnimg.cn/blog_migrate/6f3a1e239ae58616fbd4a069cc6d1d9c.png


2. 报错文字

merge brach "dev"
# 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.
~
~
~
-- INSERT -- recording
大概的意思如下:
# 请输入一个提交消息来解释为什么合并是必要的,
# 特别是当它合并一个更新的上游到一个主题分支。
#   
# 以“#”开头的行将被忽略,空消息将中止
# 提交。

3. 办理方法

1. 按键盘字母 i 进入insert 模式;
2. 修改最上面那行黄色合并信息,也可以不修改;
3. 按键盘左上角"Esc"键;
4. 输入":wq",注意是冒号+wq,按回车键即可;

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Git 合并时出现 Please enter a commit message to explain why this merge