Aborting commit due to empty commit message (editor = atom)

夙愿已清 提交于 2020-01-13 04:55:28

问题


Does anyone actually use atom for git commit messages here? I want to but I'm having this problem and have been sticking with git commit -m '....' . When I try to use atom, it opens atom and almost immediately i get this message from git bash: hint: Waiting for your editor to close the file... Aborting commit due to empty commit message.


回答1:


I understand you have switched to SublimeText since your question, but for others:

Recent (April 2019) atom/atom issue 19147

set [core] editor = atom --add --wait instead.
--add will always open the new editor in the last-focused window.

The recent Atom/Git seem still have issue (a different one, meaning your original issue might have been solved):

  • Atom : 1.36.0
  • Electron: 2.0.18
  • Chrome : 61.0.3163.100
  • Node : 8.9.3

On Windows 10

Expected behaviour

When we finish a Git commit message edit in Atom, it should return to the original process (e.g.: shell command)

Actual behaviour

Not returning to the original process.
(Before v1.36.0, it used to return to the original process)

Note

The same behaviour happens with other Git commands like crafting interactive commit rebasing.
The same thing happens when a Git commit message editor opens in Atom in safe mode



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

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