git config_error ai_generated true

合并提交消息为空。正在中止合并。

Merge commit message is empty. Aborting merge.

ID: git/merge-commit-no-message

其他格式: JSON · Markdown 中文 · English
88%修复率
82%置信度
1证据数
2024-03-20首次发现

版本兼容性

版本状态引入弃用备注
git 2.35.0 active
git 2.42.0 active
git 2.46.0 active

根因分析

尝试使用空提交消息进行合并,通常是由于缺少或配置错误的编辑器或钩子。

English

Git merge was attempted with an empty commit message, often due to a missing or misconfigured editor or hook.

generic

官方文档

https://git-scm.com/docs/git-merge

解决方案

  1. Run 'git config core.editor nano' to set a proper editor, then re-run 'git merge --continue'.
  2. Use 'git merge --no-edit' to auto-generate a default merge message.

无效尝试

常见但无效的做法:

  1. 80% 失败

    Setting GIT_EDITOR to 'true' or 'cat' may cause empty messages, as they produce no output.

  2. 95% 失败

    Manually editing .git/MERGE_MSG to be empty and retrying will fail again.