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

- **ID:** `git/merge-commit-no-message`
- **领域:** git
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 88%

## 根因

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

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| git 2.35.0 | active | — | — |
| git 2.42.0 | active | — | — |
| git 2.46.0 | active | — | — |

## 解决方案

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.
   ```

## 无效尝试

- **** — Setting GIT_EDITOR to 'true' or 'cat' may cause empty messages, as they produce no output. (80% 失败率)
- **** — Manually editing .git/MERGE_MSG to be empty and retrying will fail again. (95% 失败率)
