git: Aborting commit due to empty commit message (editor: atom)

我们两清 提交于 2020-01-03 15:36:18

问题


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

Using vim, it works just fine...

I'm running OSX Yosemite.

So, how can I get this to work?

Edit: Atom opens properly, but the error message gets posted before it does.


回答1:


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"


来源:https://stackoverflow.com/questions/29274376/git-aborting-commit-due-to-empty-commit-message-editor-atom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!