git
config_error
ai_generated
true
合并提交消息为空。正在中止合并。
Merge commit message is empty. Aborting merge.
ID: git/merge-commit-no-message
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.
官方文档
https://git-scm.com/docs/git-merge解决方案
-
Run 'git config core.editor nano' to set a proper editor, then re-run 'git merge --continue'.
-
Use 'git merge --no-edit' to auto-generate a default merge message.
无效尝试
常见但无效的做法:
-
80% 失败
Setting GIT_EDITOR to 'true' or 'cat' may cause empty messages, as they produce no output.
-
95% 失败
Manually editing .git/MERGE_MSG to be empty and retrying will fail again.