问题
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