git:由于提交消息为空而中止提交(编辑器:atom) [英] git: Aborting commit due to empty commit message (editor: atom)

查看:509
本文介绍了git:由于提交消息为空而中止提交(编辑器:atom)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试提交某些内容而不使用"-m"时,我立即收到此消息. 我将默认编辑器更改为原子,并设置了"-w",也尝试了"-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆