Aborting commit due to empty commit message
git
Solution
When you set an editor in the configuration of Git, make sure to pass the parameter "-w" to force Git to wait your commit message that you would type on your custom editor.
git config --global core.editor "[your editor] -w"
Problem
As a newbie git user, when I try to commit my work with ``` git commit -a -v ``` and I enter a commit message in my editor, I close the file, and get this error: ``` Aborting commit due to empty commit message. ``` I have read nearly all the topics addressing to this issue, changed editors, basically tried everything but nothing helps. What should I do? One thing I noticed, while trying the whole process with notepad++, the file couldn't be saved. A possible workaround is this: ``` git commit -am "SomeComment" ``` But by doing so I feel I am kind of nullifying the purpose of using git. I want to properly document my changes.