Git提交消息无法使用atom 1.21.1

时间:2017-10-16 13:12:56

标签: git atom-editor

我正在尝试使用原子添加提交消息并使用
git config --global core.editor "atom"将其设置为我的默认编辑器但是只要我输入git commit它就会打开atom并显示消息aborting commit due to empty commit message. 我还尝试添加--wait。搜索了一段时间后,我发现这是以前版本中的问题,但后来修复但我不知道为什么我面临这个问题

1 个答案:

答案 0 :(得分:1)

尝试改为:

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

2015年有一个旧的错误(atom/atom issue 3074),但现在应该可以使用(2017年第四季度)。

另见atom/atom issue 12027