Aborting commit due to empty commit message

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"

Leave a Comment