我已将git commit消息的核心编辑器设置为Brackets.io但不幸的是它始终显示此消息
Aborting commit; you did not edit the message.
我尝试-w
& -W
让它等到我写下我的提交但没有运气!
任何帮助?
答案 0 :(得分:1)
尝试其中一个configurations of this question,即:没有任何open -nW
选项,看看是否足以避免该错误消息。
请注意,您在2015年看到的错误消息将随Git 2.14.x / 2.15(2017年第3季度)而变化 你现在应该看到:
Aborting commit due to empty commit message
commit bc17f35见Kaartic Sivaraam (sivaraam
)(2017年7月17日)
(由Junio C Hamano -- gitster
--合并于commit 2b473ce,2017年8月11日)
之前检查空消息
commit
:在检查未触摸模板检查提供给“
git commit
”的模板是否不受影响 在空消息检查之前完成 这会导致在以下情况下显示错误的错误消息:当用户完全删除模板中的所有内容以中止提交时,会显示“模板未触摸”错误。这是错误的。
应该向他显示“空信息”错误。在检查未触动的模板之前,请检查空消息 从而解决了这个问题。