git:由于空提交消息而中止提交(编辑:atom) [英] git: Aborting commit due to empty commit message (editor: atom)
本文介绍了git:由于空提交消息而中止提交(编辑:atom)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试提交某些内容时,而不是使用-m",我会立即收到此消息.我将默认编辑器更改为设置了-w"的 atom,也尝试了-W".
When I try to commit something, not using "-m", I get this message immedately. I changed my default editor to atom with "-w" set, also tried "-W".
git config --global core.editor -w
使用vim,它工作得很好...
Using vim, it works just fine...
我正在运行 OSX Yosemite.
I'm running OSX Yosemite.
那么,我怎样才能让它发挥作用?
So, how can I get this to work?
Atom 正常打开,但错误消息在它之前发布.
Atom opens properly, but the error message gets posted before it does.
推荐答案
Atom 编辑器 Git 集成 页面,在提交编辑器"部分指出您必须将 --wait
标志作为编辑器命令的一部分:
The Atom Editor Git Integration page, in the "Commit Editor" section states that you must pass the --wait
flag as part of the editor command:
git config --global core.editor "atom --wait"
这篇关于git:由于空提交消息而中止提交(编辑:atom)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文