git:由于提交消息为空而中止提交(编辑:atom)
git: Aborting commit due to empty commit message (editor: atom)
当我尝试提交某些内容而不是使用“-m”时,我会立即收到此消息。
我将默认编辑器更改为带有“-w”设置的 atom,还尝试了“-W”。
git config --global core.editor -w
使用vim,效果很好...
我是 运行 OSX Yosemite。
那么,我怎样才能让它发挥作用?
编辑:Atom 可以正常打开,但错误消息会先于它发布。
Atom Editor Git Integration 页面的 "Commit Editor" 部分声明您必须将 --wait
标志作为编辑器命令的一部分传递:
git config --global core.editor "atom --wait"
当我尝试提交某些内容而不是使用“-m”时,我会立即收到此消息。 我将默认编辑器更改为带有“-w”设置的 atom,还尝试了“-W”。
git config --global core.editor -w
使用vim,效果很好...
我是 运行 OSX Yosemite。
那么,我怎样才能让它发挥作用?
编辑:Atom 可以正常打开,但错误消息会先于它发布。
Atom Editor Git Integration 页面的 "Commit Editor" 部分声明您必须将 --wait
标志作为编辑器命令的一部分传递:
git config --global core.editor "atom --wait"