git:由于空提交消息而中止提交(编辑器:atom)

时间:2015-03-26 08:56:50

标签: macos git atom-editor

当我尝试提交某些内容,而不是使用" -m"时,我立即收到此消息。 我使用" -w"将我的默认编辑器更改为atom。设置,也试过" -W"。

git config --global core.editor -w

使用vim,它工作得很好......

我正在运行OSX Yosemite。

那么,我怎样才能让它发挥作用呢?

编辑:Atom正常打开,但错误消息会在它发布之前发布。

1 个答案:

答案 0 :(得分:3)

“提交编辑器”部分中的Atom Editor Git Integration页面指出您必须将--wait标志作为编辑器命令的一部分传递:

git config --global core.editor "atom --wait"